Assigning property values, Cascading, and Inheritance
Yay!
I finally had occaission today to use a !important flag in one of my CSS rules.
W3 CSS spec, on rules flagged important:
an "!important" declaration (the keywords "!"
and "important" follow the declaration) takes precedence over a normal
declaration. Both author and user style sheets may contain
"!important" declarations, and user "!important" rules override author
"!important" rules.
I was fixing some styles in one of my blogs, and one line was having no effect.
I added !important at the end of one of the properties in the rule, and that fixed the problem.


0 Comments:
Post a Comment
<< Home