[thelist] Remove CSS Border

Timothy J. Luoma lists at tntluoma.com
Tue Aug 27 14:41:00 CDT 2002


Feingold Josh S wrote:

> I have a table with a border on the bottom of each <tr> element.  How can I
> make a specific row not have the border?

The easiest way:

<tr class="special">
	<td>foo</td>
	<td>bar</td>
</tr>

with this CSS:
	tr.special td { border: none; }


Optionally, but less desirable:

<tr>
	<td class="special">foo</td>
	<td class="special">bar</td>
</tr>

with this CSS:
	td.special { border: none; }


the latter is less-desirable because it adds more page weight and more
specificity to the HTML... assume there are 40 <TD>s... which would you
rather add: 1 class attribute to the "tr" or 40 class attributes to all
the TDs

TjL



--
30 Days to becoming an Opera Lover
                                  http://www.tntluoma.com/opera/lover/
Day Two: Download and Installation
                    http://www.tntluoma.com/opera/lover/day02-install/





More information about the thelist mailing list