I'm having trouble removing a text-decoration: underline
property.
My stylesheet reads:
a {
text-decoration: underline;
}
a:link .product-price {
text-decoration: none !important;
}
My HTML reads:
<div class="product">
<a>
<img />
<div class="product-info">
<div class="product-title"></div>
<div class="product-price"></div>
<div class="product-reviews"></div>
</div>
</a>
</div>
Chrome's inspector is showing:
a:link .product-price {
text-decoration: none !important;
}
Then further down, greyed out (under the heading "Inherited from a"):
a {
text-decoration: underline;
}
Why is the inherited style overwriting my applied style, which has more specificity, an !important
tag, and appears lower down in the calling order? Wouldn't my applied style appear like this if it was being overwritten:
text-decoration: none !important;
I'm flummoxed.