Click to See Complete Forum and Search --> : Vertical <hr>????


Asch
05-05-2003, 08:36 AM
Hi,

is it possible to do an vertical <hr> bar ?

thx

asch

requestcode
05-05-2003, 08:47 AM
No. You will have to use an image to do that.

Asch
05-05-2003, 09:18 AM
yeah thx

is what i thought...:O)

enjoy

asch

:D

AdamGundry
05-05-2003, 09:22 AM
Correct, there is no vertical rule, but you can use a div instead of an image:

<div style="background-color: black; width: 5px; height: 100px">

You'll probably also need to add CSS positioning to get it to the right place on your page.

Adam

P.S. Another way is to use a table with a cell border, but it is not really good practice.

nkaisare
05-05-2003, 09:53 AM
A better way of getting a vertical rule is to use "border" property.
For example, if you have a navigation bar in left hand side and want a vertical hr separating it from the main contents, you may use
border-right: 1px solid black

Asch
05-05-2003, 10:15 AM
hmmm yeah divs is allright but the problem with them is taht when you resize window....it moves place !...

and table bouhhh --dont want to muk arround ther lol

think that image is still the besst :O)


thx

asch
:D