can the style be conditional on the content?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Summercool

    can the style be conditional on the content?

    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.

  • Harlan Messinger

    #2
    Re: can the style be conditional on the 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.
    No.

    Comment

    Working...