Wednesday, 22 June 2011

Pseudo Class Strange Specificity Behaviour

Just a quick note to remind myself to blog about this in more detail.

1. Have an ANCHOR element with a class and associated selector in one file like:
<div class="SearchButtonBar">
    <div class="Button"><a tabindex="31" onclick="return false" href="#">Clear</a></div>
</div>
Styles1.css
.Button a:link {
    color#FFFFFF;
 }

2.  Then in another style sheet, over-ride that style with a specific selector such as

Styles2.css

No comments:

Post a Comment