Vertical line in html??

the ways above will work. here's another option. this one works by placing a border on just the left side of a div (or a right side). this would work in circumstances where you need the line to extend the height of the content with minimal markup. if you put padding/margin on the div, you could get it further from or closer to your content.

if you want it to the left side of a div, you could just do
div#name {
border-left:1px solid #000;
}

this makes a 1 px wide black line, as tall as the div.
("name" is the id you gave the div in your html)
 
You can look at this: http://www.microbion.co.uk/web/vertline.htm

Really, there are many ways of doing this. Another website I was looking at suggested using an image (in the source, #4 response).

Or you have some element, background-color set to something, and stretch it.

This all depends how you have your page laid out right now, and what you want to use.
 
Back
Top