Virginia DeBolt shares a tip: Calculate the Specificity of CSS Selectors “Have you ever added a new rule to your CSS stylesheet, but seen no change in the results on the page in the browser window? Maybe the new selector wasn’t specific enough to overrule and existing rule in your stylesheet. Here’s how to mathematically calculate the specific weight of your CSS selectors. The W3C uses mathmatical formulas to determine the weight of any particular style. The more weight a style has, the more specific it is.”
Copyright © 2004-2010 Meryl K. Evans. All rights reserved. Valid XHTML and CSS. Powered by WordPress, built by Foobuilder.
Comments