Re: pseudoclass based on document content

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 UTC