...

View Full Version : can we add border to <tr>



o0O0o.o0O0o
05-01-2009, 01:08 AM
Is there any way to add border to <tr> rather than applying border on <td>

ajhauser
05-01-2009, 04:43 AM
In my experience no - and what's strange is that you can add a CSS class to both the TD tag AND the Table tag.

ajhauser
05-01-2009, 04:47 AM
If you just wanted one big section with a border on it though, wouldn't you be better off using div instead of a table? You could then apply a border to that.

abduraooft
05-01-2009, 10:23 AM
Is there any way to add border to <tr> rather than applying border on <td>

<tr class="myrow">
<td></td>
<td></td>
</tr>

tr.myrow td{
border:1px solid #000;
}

table{
border-collapse:collapse;
} :)

o0O0o.o0O0o
05-04-2009, 01:35 AM
Thanks buddy , u almost have all solutions :D

VIPStephan
05-04-2009, 04:41 PM
As far as I remember a border or backgound color applied to a table row doesn’t work in all browsers (peeking at IE). In the worst case you can apply a top and bottom border to the cells in that row and a left and right border to the first or last cells, respectively.

o0O0o.o0O0o
05-05-2009, 12:21 AM
I think background color in tr works . I think i have applied that many times. but border doesn't work



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum