Forum Moderators: open

Message Too Old, No Replies

Add borders to individual table cells

         

MartinWeb

2:37 am on Dec 31, 2009 (gmt 0)

10+ Year Member



How can I add borders to individual table cells? Any help would be greatly appreciated!

tedster

3:50 am on Dec 31, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use CSS. Here's an example with the CSS inline, but you can also style it with an external .css file declaring a class.

<table><tr>
<td>Yes</td>
<td style="border:1px solid red;">No</td>
<td>Maybe</td>
</tr></table>

That example will place a red border around the cell that holds "No"

MartinWeb

12:30 am on Jan 2, 2010 (gmt 0)

10+ Year Member



Ok, Thanks!