W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2005

RE: Inline Style Sheet Question

From: Beheler Kim <beheler_kim@bah.com>
Date: Tue, 5 Apr 2005 19:19:43 -0400
Message-ID: <CD6921F5E4AC7842B574B14C4E48A8CB4E3585@MCLNEXVS03.resource.ds.bah.com>
To: "David Woolley" <david@djwhome.demon.co.uk>, <w3c-wai-ig@w3.org>

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

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

!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

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:31 UTC