Take a look at this CSS snippet:
* { font-family: Gill Sans, Verdana, Arial, Helvetica, Sans-Serif}
p { font-family: Courier; }
Now let's consider this HTML markup:
<p>Hi there. So <em>very</em> pleased to make your acquaintance.</p>
Have you ever wondered why the <em>
text is displayed in Gill Sans and not Courier? It may seem like a 'bug' or counterintuitive that the wildcard selector overrides the specific <p>
style. While it might make sense in some cases where all tags have equal weight, it can be frustrating when dealing with specific styling needs.
So, the question remains - is there a way to apply 'modifiers' like <em>
only to certain aspects of styling without affecting others?