I’ve got this HTML that I’m trying to style:
<div id="menubar">
<menu id="menubarTransportControls">Foobar</menu>
</div>
Can anyone explain why this CSS…
#menubar menu {
width: auto;
}
…takes priority over…
#menubarTransportControls {
width: 100%;
}
I’m using IE7 with the HTML5 shiv javascript. Thanks
#menubar menuhas higher specificity than#menubarTransportControls.To understand specificity:
You can use this calculator if you like:
http://www.suzyit.com/tools/specificity.php
Be sure to read some of the above resources to understand what the “Score” means.