Is it possible to border individual cells in a table?

liunx

Guest
I'm wanting to turn on, or off, borders on specific cells and rows within a table. I've tried the standard border code, 'border="1"' in the 'tr' and 'td' tags, but it doesn't work.<br />
<br />
I'm catering to IE 5.0 and higher primarily.<!--content-->You can do this with a little css... I am half naked and in a rush to work not a pretty thought... but if you can start from there yiu might get it... but if not i will post in a few hours on how to do it...<br />
<br />
sorry bout the horrible mental image...<!--content-->This (<!-- m --><a class="postlink" href="http://www.htmlgoodies.com/beyond/css_borders.html">http://www.htmlgoodies.com/beyond/css_borders.html</a><!-- m -->) should point you in the right direction.<!--content-->Yep that link will help...<br />
<br />
<td style="border: solid #CCFFCC 1px"><br />
<br />
is the kinda thing you want, if you want to turn a border of you can state<br />
<br />
border: none<br />
<br />
Or you can state all the borders in a clockwise direction from the top like this....<br />
<br />
border: solid none none dotted<br />
<br />
Any more questions fire away.<!--content-->Ok, thanks. I'm already using css a little, so that'll work fine.<!--content-->why can I only get this to work with cells and not rows? I want a border around an entire row and not each indiviual cell, any ideas?<!--content-->because borders in table are lot different than the borders you are doing.<br />
<br />
look in table border as it will do collapse and stuff. that border has nothing to do with row and cells as it goes into the table tag itself. that is my understanding anyway. if you want to make you own rows without the use of tables than that is the way to go. just use borders like you are and then use a div tag instead of the table tag.<!--content-->
 
Back
Top