Conditional formatting in CSS???
Posted on 2007-03-21
Does anyone know if it is possible to implement conditional formatting in CSS?
I have a HTML table of numeric data generated by an ASP script. If a number is a negative value I want it to appear in red, otherwise black. I can do this easily in ASP, but would like to do it in CSS (if it’s possible) to keep the style completely separate from the ASP page.
Any insights are much appreciated.