W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2005

Re: CSS validator report has changed

From: Paul Arzul <patricka@mkdoc.com>
Date: Sun, 18 Sep 2005 15:05:45 +0200
Message-ID: <432D6629.1060001@mkdoc.com>
To: www-validator-css@w3.org

Graham wrote:
> Two days ago I tested a HTML page with the CSS validator and it passed with
> no errors. Today after making some slight amendments tested the same page
> and received 300 warnings regarding, mainly, colours. Many of the warnings
> were similar to -
>  
> Line : 39 (Level : 1) Same colors for color and background-color in two
> contexts .legalbar and .faqsubheader
>  
> as the two classes have no relation to each other and can't be used on the
> same item what is the point of the warning.

you might logically not put them together, but other than the already mentioned nesting you could also do:

<p class="legalbar faqsubheader">...</p>

since the class attribute can take multiple names[1], separated by white space characters. (afaik, this is a well supported feature.)

- p

--
1.
HTML 4.01 Specification
7.5.2 Element identifiers: the id and class attributes
http://www.w3.org/TR/html4/struct/global.html#adef-class
Received on Sunday, 18 September 2005 13:05:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:16 GMT