Tuesday, August 6, 2013

A learning tidbit in CSS: Specificity

What is specificity in CSS, you ask? Have you ever tried to customize a layout in CSS with a fine degree of control, but for some reason your properties keep getting overridden, with mysterious strike-through as if the web just doesn't care what you want? The reason could be because of specificity: How CSS decides which properties win over others.  There is an outstanding article on this topic over here:

http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html

No comments:

Post a Comment