Alexander 'Alfe' Fetke wrote:

The "! important" is a way to tell the browser that this adjustment shall have priority over a builtin style sheet or similar. Depends on the browser whether it is necessary and/or successfull ;-) The given configuration works in all important cases we testet (exceptions like the not-so-important konqueror exist).

From the CSS2.1 spec
(http://www.w3.org/TR/CSS21/cascade.html#important-rules):

However, for balance, an "!important" declaration (the delimiter token "!" and keyword "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. This CSS feature improves accessibility
of documents by giving users with special requirements (large
fonts, color combinations, etc.) control over presentation.


The important bit being:

'user "!important" rules override author"!important" rules.'

Whether that's how it is in the real world is another thing... :-(

Dave.



Reply via email to