Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I would like to have a table with a line between two rows. How do I establish that? I tried to put border=1 in my tr tag but that doesn't work. How do I have to do it ? So, I actually just want a border around each table row and not around a table cel
 
I've had that same problem. I recall I once made a black "dot" graphic and called it dot.gif. It was 2 pixels by 2 pixels or something. Anyway, try this little trick if it'll help:

<tr><td colspan=&quot;5&quot;><img src=&quot;dot.gif&quot; height=&quot;2&quot; width=&quot;100&quot;></td></tr>

Point being that you can stretch that dot as far as you need to and it'll give you a nice line. Make those &quot;colspan&quot; and &quot;width&quot; attributes anything you want.

John Hoarty
jhoarty@quickestore.com
 
you can use CSS (cascading style sheets)

Code:
.myCell {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 1px}

<td class=myCell>

you can specify the side and width of any given border using this. DeZiner
gear.gif width=45 align=left
When the gears stop turning,
we all stop learning.
 
Uh... why don't you just put a <hr> at the bottom of each table data cell?
 
As that seems to be a solution, this will not put it as the border just 'close' to it. If you have set any cellpadding this will especially make the layout not quite right leaving a gap between the two lines if they are in side by side cells. DeZiner
gear.gif width=45 align=left
When the gears stop turning,
we all stop learning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top