Computer Hope
Internet & Networking => Web design => Topic started by: rsagall on June 28, 2004, 05:09:57 AM
-
I have a table that I want to inclue single horizontal and vertical lines. (http://www.occmedcentral.com/guidelines/fatigue.shtml). I can get a single line around the perimeter of the table. How do I put them inside the table?
Thanks,
Rich Sagall
-
If you have lines around the perimiter then you're using the border trait on the table. Do the same on each <tr>.
-
I tried this with the <tr> command and it didn’t work - nothing happened. I put the same code in the <td> command and it worked - but didn’t give the appearance I want. It put a box around the cell and all I want is a line across the entire row.
Thanks,
Rich
-
Ahh I see. Why not just put in a horizontal rule that spans the table or put in a single cell with the width of the table and a HR inside?
<table>
<tr>
<td> stuff</td>
<td> stuff</td>
<td> stuff</td>
</tr>
<tr>
<td><HR></td> You could optionally do <td colspan=3>
</tr>
<tr>
<td> stuff</td>
<td> stuff</td>
<td> stuff</td>
</tr>
</table>
-
I tried your code and it put the line above the table. I also tried adding
<tr>
<td colspan=”7”>
</td>
</tr>
It worked - sort of. The line didn’t extend the full width of the table.
In another table I will need both horizontal and vertical lines.
Any other ideas?
Thanks
-
Hmm.. what about having an image of a line (either vertical or horizontal) then put the image in the table cell.