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

Re: pseudoclass based on document content

From: Christoph Päper <christoph.paeper@tu-clausthal.de>
Date: Sat, 17 Jul 2004 06:27:27 +0200
To: "Mark Moore" <mark.moore@notlimited.com>, www-style@w3.org
Message-ID: <opsa9lb1cqofh7fl@crissov.heim4.tu-clausthal.de>

*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 GMT

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