View Full Version : HTML coloring text in tables


Neomega
Jun 03, 2003, 02:28 PM
I cant seem to figure oiut how to color the text inside a table.

Anyone know how off the top of their heads?

ainwood
Jun 03, 2003, 02:51 PM
You need something along the lines of a color:red; or color:blue; tag in a style section.

Neomega
Jun 03, 2003, 03:01 PM
gonna have to use styles... ok thanks.

Mariusz
Jun 03, 2003, 04:39 PM
Why don't you just use <font> tag?

With this code:
<table border=1 cellpadding=6>
<tr>
<td>
<font color=red>Czerwony</font>
</td>
<td>
<font color=blue>Niebieski</font>
</td>
</tr>
<tr>
<td>
<font color=black>Czarny</font>
</td>
<td>
<font color=green>Zielony</font>
</td>
</tr>
</table>

I recieved this effect:
http://www.civfanatics.net/uploads4/mpz_html_font.jpg

Neomega
Jun 04, 2003, 02:36 AM
Thanks for the suggerstion, but styling was more what I was looking for, I am super amateur at this stage so I hadn't used styles yet.... but using the font tag can only do it one cell of the table at a time, and this table is quite large.... (100's of cells)