Internet & Networking > Web design

Lines in a Table

(1/2) > >>

rsagall:
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

Joleen:
If you have lines around the perimiter then you're using the border trait on the table.  Do the same on each <tr>.

rsagall:
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

Joleen:
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>

rsagall:
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

Navigation

[0] Message Index

[#] Next page

Go to full version