Posts: 39
Location: Aachen, Germany
|
If I want borders around all my <td>'s, but want a class called "navigation" to not have a border, is there a way to assign the class only to the surounding table? CSS doesn't make sense if I have to assign each and every td to the class navigation so I know there is a way.
In other words, what is to do to use
HTML Code:
<table class="navigation">
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
</table>
instead of
HTML Code:
<table>
<tr>
<td class="navigation">a</td>
<td class="navigation">b</td>
<td class="navigation">c</td>
</tr>
</table>
[CSS]
td
{
border: 1px solid #000000;
}
.navigation
{
border: 0px;
}
[/CSS]
|