CSS Specificity: Things You Should Know

No Comments
Posted 17 Sep 2007 in CSS
Advertisement

Nice article from SmashingMagazine.com it’s about CSS Specificity, this some a brief from they article.

What is Specificity?

  • Specificity determines, which CSS rule is applied by browsers. “Specificity is a type of weighting that has a bearing on how your cascading style sheet (CSS) rules are displayed.” [Understanding Specificity]
  • Selector specificity is a process used to determine which rules take precedence in CSS when several rules could be applied to the same element in markup. [Selector Specificity]
  • Every selector has its specificity. “All rules in your CSS carry a specificity rating regardless of selector type, although the weighting that is given to each selector type varies and will ultimately affect the styling of your web documents.” [Understanding Specificity]
  • If two selectors apply to the same element, the one with higher specificity wins.

You can read their completed post.

Popularity: 3%

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Digg
  • Reddit
  • BlinkList
  • NewsVine
  • Print
  • LinkedIn
  • StumbleUpon
  • Sphinn
  • Yahoo! Buzz
  • FriendFeed
  • HelloTxt
  • Google Bookmarks
  • Suggest to Techmeme via Twitter
  • Technorati
  • email
  • PDF

Add Your Comment

We Are DoFollow, it' mean No Follow Free ;)