Understanding Style Precedence in CSS: Specificity, Inheritance, and the Cascade
12/03/2010, 10:14H · Topics: Web Development · Print
Have you ever run into the situation where you?re trying to apply a css style to an element, but it won?t take? Your page it seems to be ignoring your css, but you can?t figure out why. Maybe you found yourself using !important or adding an inline style as a last resort. There?s a good chance the problem you encountered was one of css precedence.
Understanding Style Precedence in CSS: Specificity, Inheritance, and the Cascade
Via / Script & Style