Re: CSS color conditional on content

Summercool wrote:
> for CSS, is it possible to say, if the content in the div or span is
> 0, show the "0" in red, and if it is a "1", show it in green? I can
> use PHP or any script to do it, but it probably is quite handy to let
> CSS handle the formatting style without needing server support.
>
The answer's still "No".
Harlan Messinger [ Fr, 23 November 2007 16:20 ] [ ID #1877585 ]

Re: CSS color conditional on content

Harlan Messinger wrote:
> Summercool wrote:
>> for CSS, is it possible to say, if the content in the div or span is
>> 0, show the "0" in red, and if it is a "1", show it in green? I can
>> use PHP or any script to do it, but it probably is quite handy to let
>> CSS handle the formatting style without needing server support.
>>
> The answer's still "No".

However, you can use JavaScript to do it.
the DtTvB [ Fr, 23 November 2007 18:03 ] [ ID #1877591 ]
Miscellaneous » alt.html » Re: CSS color conditional on content

Vorheriges Thema: Flicker
Nächstes Thema: Viws.Net