RE: Inline Style Sheet Question

Thanks!  I didn't include the !important in my user-defined style sheet.
When I added that in it overrode the external style sheet.



-----Original Message-----
From: w3c-wai-ig-request@w3.org [mailto:w3c-wai-ig-request@w3.org] On
Behalf Of David Woolley
Sent: Tuesday, April 05, 2005 5:59 PM
To: w3c-wai-ig@w3.org
Subject: Re: Inline Style Sheet Question


> When you say external style sheets allow for alternative style sheets,
> are you referring to a user-defined style sheet? If a website only
uses

No.  A document can have multiple named style sheet combinations and
the browser can allow the user to select one of them.  View | Use 
Style Sheet in Mozilla.

Unfortunately there are no standards for the naming, and I don't believe
any browser makes the selection of a name sticky.

> an external style sheet, does that automatically mean that the
> user-defined style sheet will override it?  I tried to test this out
by

!important rules in user style sheets (and the style sheets implied
by customisation dialogues in the browser) override all author
styling, regardless of the route.

> creating my own user-defined style sheet.  On sites that only use
> external style sheets I still had a problem overriding all of the
> styles.  Maybe I am doing something wrong?  Any suggestions would be
> helpful.

There is a problem that the overrides have to be at least as selective
as the author's selectors, as well as being !important.

Received on Tuesday, 5 April 2005 23:20:03 UTC