3 ms·
If not underlining post titles is so important, than the CSS rule should make that explicit: .post .title { font-weight: bold; text-decoration: none; } Le
by jt2190 11y ago
If not underlining post titles is so important, than the CSS rule should make that explicit:
.post .title {
font-weight: bold;
text-decoration: none;
}
Leaving text-decoration out of the rule is basically saying: "I defer to my ancestor rules for advice on styling this, and I accept their decision."
- mikewhy 11y agoIt's not just that the post titles shouldn't be underlined, it's that one elements style should not creep into another elements style by accident
- marcosdumay 11y agoWell, the "all descendants" selector is explicitly intended to do that. It's a bit too far to call it "by accident". There's rarely a real use for the ".sidebar .title" construction.
- talmand 11y agoRarely? I would think the vast majority of websites would have a version of that in place in several ways.