Friday, October 07, 2005

CSS: Specificity Wars (JPEG Image, 900x900 pixels)

Now this is how specificity should be taught. While I appreciate the whole multiply IDs by 100, classes by 10 and add them up along with the html elements, I don't like that teaching method because it just isn't accurate. 11 HTML elements won't take precedence over 1 class. So that method, while a quick and dirty hack easily understood by math geeks, is not technically accurate. But this way of teaching it is accurate, and far more logical. I mean, 11 Storm Troopers aren't going to beat Darth Vadar, right? Obviously.

No comments: