PDA

View Full Version : Tables? Change colour of a single cell


blanchard
02-11-2006, 12:15 PM
How do I change the colour of a single cell within a table?

regards blanchard :?

ramandeep
02-11-2006, 12:25 PM
Hi,


<table width="100">
<td bgcolor="red">
red
</td>
<td bgcolor="blue">
blue
</td>
</table>

blanchard
02-11-2006, 12:38 PM
Thank you,
that worked out fine.

ramandeep
02-11-2006, 03:41 PM
Cheers!

domedia
02-11-2006, 10:00 PM
Or the CSS version :)
<td style="background-color: blue;">

Or even better by seperating the CSS from the HTML:

td.price {background-color: blue;}
<td class="price">