PDA

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


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

regards blanchard :?

ramandeep
02-11-2006, 11:25 AM
Hi,


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

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

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

domedia
02-11-2006, 09: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">