I use such a lengthy code in each cell:
...
Is there a shorter way, for example a shorter tag for each color?
2007-04-03
20:03:51
·
5 answers
·
asked by
Payam Samidoost
2
in
Computers & Internet
➔ Programming & Design
I need to define a short for each color
for green
for red
and then use the short tag in table
green
red
Just this!
2007-04-03
21:44:18 ·
update #1
5 answers
Use css
blah |
whateva |
-------------
You can't really make up your own custom tags, but you could fake it.
Use for green and to close the block
for red and to close the block
Then do a series of find and replace all in your editor
replace with
replace with
You can also use a macro preprocessor to do basically the same thing, web pre processor(wpp) is one example.
2007-04-03 20:18:32
·
answer #1
·
answered by Vegan 7
·
1⤊
2⤋
Use the style attribute on the td
Red color text
|
Green color text
|
2007-04-03 20:13:26
·
answer #2
·
answered by Me 4
·
0⤊
2⤋
Also, the color="green" will only work in the Microsoft javascript browsers. You could set up an array of your colors. Then call by color[3]. Or you could set up CSS stylesheet.
2007-04-03 20:11:26
·
answer #3
·
answered by Anonymous
·
0⤊
2⤋
You should use CSS. To add to Vegan's post - all the TDs can be colored using the td selector.
2007-04-03 20:58:09
·
answer #4
·
answered by Memphis 3
·
0⤊
2⤋
You can't get any shorter than that aside from entering the HEX number.
2007-04-03 20:07:49
·
answer #5
·
answered by Anonymous
·
0⤊
1⤋
fedest.com, questions and answers
| |