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

Re: Inline Style Sheet Question

From: David Woolley <david@djwhome.demon.co.uk>
Date: Wed, 6 Apr 2005 22:54:57 +0100 (BST)
Message-Id: <200504062154.j36LsvX03069@djwhome.demon.co.uk>
To: w3c-wai-ig@w3.org

> If there is a style in the author's style sheet that just makes the font
> red, for example: 

A typical abuse of style sheets.

> 	.red {
> 		Color: red;
> 	}
> 
> Then I must have that same class defined in my user-defined style sheet?

No.  You must, at the same importance level, have at least as many selectors
for that attribute, e.g. p { color: red } would override, but {color: red}
would not.  !important would cause an override because the author hasn't
used it.
Received on Wednesday, 6 April 2005 21:55:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:21 GMT