Computer Hope

Internet & Networking => Web design => Topic started by: rsagall on June 28, 2004, 05:09:57 AM

Title: Lines in a Table
Post 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
Title: Re: Lines in a Table
Post by: Joleen on June 28, 2004, 05:55:10 AM
If you have lines around the perimiter then you're using the border trait on the table.  Do the same on each <tr>.
Title: Re: Lines in a Table
Post by: rsagall on June 29, 2004, 04:11:36 AM
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
Title: Re: Lines in a Table
Post by: Joleen on June 29, 2004, 04:54:45 AM
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>
Title: Re: Lines in a Table
Post by: rsagall on June 29, 2004, 12:22:37 PM
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
Title: Re: Lines in a Table
Post by: Joleen on June 30, 2004, 05:33:24 AM
Hmm.. what about having an image of a line (either vertical or horizontal) then put the image in the table cell.