invisible kid
09-23-2005, 04:41 AM
I'm creating an 'accessible' table, but whenever I try and style the rows (e.g. add an inline style to the <tr> tags, or add a tr class in the stylesheet), it doesn't seem to work.
I'm trying to add a continuous border to the bottom of each row, but it just won't appear.
I can get round this problem by adding borders to the top of the <td> tags, but there are breaks in the border where the new columns start.
The structure is as follows:
<table>
<thead>
<tr>
<th id="topicsHeader">Topics...</th>
<th id="authorHeader">Author</th>
<th id="repliesHeader">Replies</th>
</tr>
</thead>
<tbody>
<tr>
<td headers="topicsHeader">Idium sit amet quanto</td>
<td headers="authorHeader">ruthie</td>
<td headers="repliesHeader">1</td>
</tr>
</tbody>
</table>
Please can anyone explain why I can't style the <tr> tags, and offer a solution so that I can create continuous horizontal borders under the rows?
I'm trying to add a continuous border to the bottom of each row, but it just won't appear.
I can get round this problem by adding borders to the top of the <td> tags, but there are breaks in the border where the new columns start.
The structure is as follows:
<table>
<thead>
<tr>
<th id="topicsHeader">Topics...</th>
<th id="authorHeader">Author</th>
<th id="repliesHeader">Replies</th>
</tr>
</thead>
<tbody>
<tr>
<td headers="topicsHeader">Idium sit amet quanto</td>
<td headers="authorHeader">ruthie</td>
<td headers="repliesHeader">1</td>
</tr>
</tbody>
</table>
Please can anyone explain why I can't style the <tr> tags, and offer a solution so that I can create continuous horizontal borders under the rows?