Richard Murnane
Jul 10, 2017 · 1 min read

Thanks aimeemarieknight for this article. This is something I’ve never seen discussed about CSS before.

Question: in the Specificity section, am I reading your description of the HTML correctly?

<div class=“container”>
<div id=“main”>
<p>
<a href="">what colour is this text?</a>
</p>
</div>
</div>

When I use the above HTML with the stylesheet shown in the article, the text comes out yellow, not pink (Chrome, Mac).

(Thanks also to luis.gomez.osuna for the Specificity Calculator link!)

    Richard Murnane

    Written by