Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:33 PM
Neal
Guest
 
Posts: n/a
Default Ranking importance

The rank of importance of CSS used to be:

Author !important rules
User !important rules
Author rules
User Rules
UA Settings

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?
  #2  
Old July 20th, 2005, 10:33 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: Ranking importance

Neal <neal413@spamrcn.com> wrote:
[color=blue]
>The rank of importance of CSS used to be:
>
>Author !important rules
>User !important rules
>Author rules
>User Rules
>UA Settings[/color]

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.
[color=blue]
>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?[/color]

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 <steve@pugh.net> <http://steve.pugh.net/>
  #3  
Old July 20th, 2005, 10:33 PM
Neal
Guest
 
Posts: n/a
Default Re: Ranking importance

On Sun, 01 Feb 2004 19:36:17 +0000, Steve Pugh <steve@pugh.net> wrote:
[color=blue]
> It can be used by the author to over ride styles applied elsewhere in
> the stylesheet.[/color]

Hmm. Hadn't considered that. Thanks.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles