Re: pseudoclass based on document content

*Mark Moore* <mark.moore@notlimited.com>:
>
> <td class="financial>123</td>
> <td class="financial><span class="negative>123</span></td>
>
> .negative {   color: red; }
> .negative:before {   content: "-("; }
> .negative:after {   content: ")"; }
>
> This keeps the content and presentation separate.

This is a really, really bad idea. Imagine how it looks without any CSS  
applied.

Received on Saturday, 17 July 2004 00:27:31 UTC