I have this simple div with a label in:
I am applying the following CSS:
Now as I understand it the universal selector has a specificity of 0,0,0,0, so this means that both of these items have the same specificity. Therefore I would expect the label to be red as that comes afterwards in the stylesheet. So why is the label shown as blue for me?
Code:
<div id="TestDiv">
<label>TEST CSS</label>
</div>
Code:
div#TestDiv *
{
color:Blue;
}
div#TestDiv
{
color:Red;
}
Comment