W3C home > Mailing lists > Public > www-style@w3.org > July 2004

Re: pseudoclass based on document content

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sat, 17 Jul 2004 00:48:13 +0200
Message-ID: <40F85B2D.2060400@inkedblade.net>
To: www-style@w3.org

Justin Watt wrote:

> 
> That would work...
> 
> ...unless you're already specifying a uniform style for the TDs:
> 
> <td class="financial">123</td>
> <td class="financial">-123</td>
> <td class="financial">(none)</td>
> 
> Assuming the numbers and table are being generated by code, I'd
> could avoid the CLASS conflict this way:
> 
> <td class="financial" STYLE="color:black;">123</td>
> <td class="financial" STYLE="color:red;">-123</td>
> <td class="financial" STYLE="color:black;">(none)</td>

The class attribute is a space-separated list of classes. You could,
therefore, have
   <td class="financial negative">

~fantasai

-- 
http://fantasai.inkedblade.net/contact
Received on Friday, 16 July 2004 18:48:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:31 GMT