Completely CSS

Focusses on the CSS standard. CSS is designed for styling web pages and XML documents. It stands for Cascading Style Sheets. CSS does the work of two XML standards: XSLT and XSL-FO. CSS is more streamlined than these other two standards It lacks their flexibility/precision but on the other hand, those two lacks its concision.

Sunday, August 06, 2006

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.

Technorati tags:

0 Comments:

Post a Comment

<< Home