Jump to content

How to put a vertical line in html


lak
 Share

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...