!important is used when you want to overwrite the rule with high specificity but do not have sufficient evidence to tie.
Example of a site with this structure:
Code:
body> # content1> # page> # left-side> # sidebar>. widgets
and another page structure
Code:
body> # content1> # post> # sidebar>. widgets
To make a general CSS. Widgets should have something like:
Code:
# content1 body. widgets properties {a}
But if you have already defined properties in the first rule and rule you apply for your element, usually defined body # content1. Widgets is ignored because the second rule is more specific.
Bookmarks