![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'd like to change the color of text in a table data field based on the content... For example, I'd like all <td>pos</td> to show the "pos" in red. All td>pending</td> should show as the normal black. I don't really want to have to add a class or a style, but that's how I've been doing it so far... I seem to remember that this is possible, I just can't remember the syntax right now and I'm not having any luck with google... |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Don't you think there should be something like: td:content "pos" { color: red; } or content "in vivo" { font: italic; } |
#5
| |||
| |||
|
|
td:content "pos" { color: red; } or content "in vivo" { font: italic; } It's called XML. |
|
Ken |
#6
| |||
| |||
|
|
I'd like to change the color of text in a table data field based on the content... For example, I'd like all <td>pos</td> to show the "pos" in red. All td>pending</td> should show as the normal black. I don't really want to have to add a class or a style, but that's how I've been doing it so far... I seem to remember that this is possible, I just can't remember the syntax right now and I'm not having any luck with google... Thanks in advance, Jeff P. |
#7
| |||
| |||
|
|
It's called XML. Actually, come to think of it, even XML can't do that. |
|
It has to be done programatically, AFAIK. |
#8
| |||
| |||
|
|
Use behaviors |
|
-moz-binding: url(zebra.xml#default); behavior: url(bycontent.htc); |
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |