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

Re: [VE][112] Duplicate class Attribute

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 18 Mar 2005 14:12:00 +1100
Message-ID: <423A4700.4010506@lachy.id.au>
To: "Brown, Shannon D" <Shannon.Brown@BNSF.com>
CC: www-validator@w3.org

Brown, Shannon D wrote:
> /Line 291, column 56/: duplicate specification of attribute "class"
> 
> <td width="180" valign="top" class="print logo" class="logo">
> 
> How do I fix this when I have 2 separate style sheets?

Just because you have 2 seperate stylesheets, doesn't mean you need two 
seperate class attributes.

with class="print logo", the following selectors should match.  You 
don't need a seperate class="logo" attribute, so remove it.

.logo {}
.print {}
.logo.print {}
.print.logo {}
td.logo {}
td.print {}
td.logo.print {}
td.print.logo {}

However, chaining class selectors like .logo.print and .print.logo 
doesn't work in IE, but all the others will.
-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Received on Friday, 18 March 2005 03:27:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT