(unknown charset) Re: pseudoclass based on document content

Excellent point.

What it suggests is that there is something intrinsic about the content
(either being preceded by a minus-sign or surrounded by parens) that
should trigger the application of style.

Granted my web application could specify that a certain content is
negative, but isn't that redundant? The content is self-evidently
negative. Hence the idea of a kind of regex content selector.

Justin

ps. Thanks to Andrew and fantasai for opening my mind to space separated
CLASS names. For anyone else here's the link to the relevant HTML spec:
http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.2




On Sat, 17 Jul 2004, [iso-8859-1] Christoph Päper wrote:

>
> *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 12:02:43 UTC