Home / Internet & Networking / Web design / Lines in a Table
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Lines in a Table  (Read 3437 times)
rsagall
Guest
« 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
IP logged
Joleen
Guest
« Reply #1 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>.
IP logged
rsagall
Guest
« Reply #2 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
IP logged
Joleen
Guest
« Reply #3 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>
IP logged
rsagall
Guest
« Reply #4 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
IP logged
Joleen
Guest
« Reply #5 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.
IP logged
Pages: [1] - (Top) Print 
Home / Internet & Networking / Web design / Lines in a Table « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.097 seconds with 18 queries.