Neal <ne*****@spamrcn.com> wrote:
The rank of importance of CSS used to be:
Author !important rules
User !important rules
Author rules
User Rules
UA Settings
Yes that was in CSS1. It was changed to the below to give user's the
final say over things that they decided were important to them.
Now the rank is this:
User !important rules
Author !important rules
Author rules
User Rules
UA Settings
Therefore - does an author's !important rule actually make a difference
now? Is the !important now pretty much effectless in an author stylesheet?
It can be used by the author to over ride styles applied elsewhere in
the stylesheet. For instance if multiple author stylesheets are being
used (say one generic corporate stylesheet and one project specific
stylesheet) then styles may need to be over ridden for particular
pages and using !important removes the need to add extra class or id
attributes to the HTML.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>