if use horizontal line, it can be like as:
<hr width="1" size="2000" noshade>
Main Topics
Browse All Topics<HR> tag is used to draw horizontal line in HTML ...how about drawing a vertical line?
i would like to draw a 500px vertical line ...so, i tried ..
<HR width=2 noshade size="500">
however, it is not successful, that vertical line was not 500px in length...is there any idea?
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Where do you want to 'draw' this line? If you simple have a block of content which you want to add a line to on the right-side it'd be dead-easy using css. For instance if you have some text in a p-tag and want a line on the right side of it:
<p style="border: 1px solid black; border-width: 0 1px 0 0;">Just add any amound of text in this paragraph, a line will always be shown at the right side of the entire text...</p>
Martin
To merge a couple of the above posts in a unified answer you can do this
<head>
<style type="text/css">
.vertical-line {
/* add padding and margin to suite needs */
border-left: 1px solid #000000;
height: 500px;
}
</style>
</head>
<body>
<div class="vertical-line"> content that goes to the right of the vertical line </div>
</body>
flow79,
I believe a closer review of the comments will show the ryancys and mreuring both had valid and easily implemented answers. Also, a test of your answer will show that it will not work as written. It needs some additional code (i.e. a float or position attribute) or it will not let other content sit next to it.
My comment was just a summary or restatement and doesn't merit consideration.
Business Accounts
Answer for Membership
by: ryancysPosted on 2005-01-10 at 00:27:24ID: 13000954
You can use a 1 x 1 pixel graphic, and then set it's height accordingly, get the idea?