Vertical Rule??

liunx

Guest
I know there is a Horizontal rule but the question begs to be asked is there a verical rule as well??? I am not sure there is but if there is it would help me greatly.<br />
<br />
Thanks Bonkom :pimp:<!--content-->Bonkom,<br />
No set <vr> tag like there is with <hr>, but the best way to get a vertical line is to use a thin <td> cell with a background colour.<br />
<br />
Eg.<br />
<table width="1" height="100"><br />
<tr><br />
<td width="1" bgcolor="#000000"></td><br />
</tr><br />
</table><br />
<br />
<br />
Be aware though, you may need to create a transparent 1x1 gif to include between the <td></td> tags in order to keep the spacing proper. (This is good practice anyway...)<br />
<br />
Hope that helps.<br />
<br />
:)<!--content-->that is how i have been doing it but i thought it would be with asking anyway.<!--content-->I usually just use a gif to create this. I take a 1pixel by 1pixel gif of the color, and stretch it to meet my need. <br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"images/blue.gif" width=5 height=200><br />
<br />
I don't know if there is a solid advantage to using a gif as opposed to a td, except that you already mentioned using a transparent gif along with the td. <br />
<br />
I also like using the 1x1 gif because you can stretch it out to any size, and its still so small of a file that it never costs much to Download <!--more-->. <br />
<br />
Food for thought. Would you like fries with that?<!--content-->Perhaps faking a VR by using the HR tag?<br />
<br />
<hr size="200" width="2"><!--content-->Originally posted by Inch <br />
Bonkom,<br />
No set <vr> tag like there is with <hr>, but the best way to get a vertical line is to use a thin <td> cell with a background colour.<br />
<br />
Eg.<br />
<table width="1" height="100"><br />
<tr><br />
<td width="1" bgcolor="#000000"></td><br />
</tr><br />
</table><br />
<br />
<br />
Be aware though, you may need to create a transparent 1x1 gif to include between the <td></td> tags in order to keep the spacing proper. (This is good practice anyway...)<br />
<br />
Hope that helps.<br />
<br />
:) Never create empty cells (<td></td>) as NS4 will quite happily collapse them when it feels like it. See Docs explanation above for the more reliable and accepted method.<!--content-->
 
Back
Top