Calculate the Specificity of CSS Selectors

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.”

Friday, May 23rd | News

Comments

Post a comment

You must be logged in to post a comment.



Warning: Invalid argument supplied for foreach() in /home/semvisib/public_html/wp-content/plugins/buysellads/helpers/bsa.functions.php on line 62