Forum Moderators: not2easy
Is it possible to draw a straight vertical line using HTML and/or CSS without using a 1 x 1 pixel image..??
Like, I have two columns ( colspan=2 )..without giving a border, i want a vertical line ( solid or dotted ) seperating the two .
Can it be done, something similiar to <HR> for horizontal line !?...some one pls help me with the code !
Thanks for the help in advance
Cheers
:)
Why not use the border property?
[w3.org...]
<table>
<tr>
<td class="rightborder">Blah blah</td>
<td class="leftborder">blah de blah</td>
</tr>
</table>
.rightborder {
border-right: 1px solid #000000;
]
.leftborder {
border-left: 1px solid #000000;
border-style: dashed;
}
The last one just makes sure that IE5 will actually show the border as it doesn't support the dashed property.
Nick