lak Posted December 6, 2007 Share Posted December 6, 2007 Hi I want to know that, how to put vertical line in html. for horizontal line we will use " <hr/>, Like that is there option for vertical line Link to comment Share on other sites More sharing options...
Synook Posted December 6, 2007 Share Posted December 6, 2007 Well it depends on your structure. Say you had two divisions floated next to each other, you could give one of them a border-right of 1px or more <div style="float:left; width:300px; border-right:2px solid #666666; margin-right:5px; ">Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah</div><div style="float:left; width:300px; ">Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah</div> Link to comment Share on other sites More sharing options...
justsomeguy Posted December 6, 2007 Share Posted December 6, 2007 There's no tag like <hr> for vertical lines. Maybe this would do something like it: <div style="display: inline; width: 3px; height: 300px; background: #000000; border: 1px solid #CC0000; clear: both; overflow: hide;"> </div> Link to comment Share on other sites More sharing options...
aalbetski Posted December 7, 2007 Share Posted December 7, 2007 their is a height property (size is deprecated) that you can use of the HR tag. IE, however, limits it to 100 regardless of the value over 100. Firefox does notuse this for IE (stacking them) <hr style="height:100px;width:2px;margin-bottom:-8px;padding:0px;" /> <hr style="height:100px;width:2px;margin-top:-8px;padding:0px;" />use this for Firefox <hr style="height:200px;width:2px;" /> Link to comment Share on other sites More sharing options...
jlhaslip Posted December 8, 2007 Share Posted December 8, 2007 http://jlhaslip.com/samples/misc/positions/border.html Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.