css - how to draw a vertical line in html using position:relative -
just out of curiosity, possible draw vertical line in html?
i've succeeded on doing horizontal line using <hr>
tag setting position position:relative
, z-index: -9999
make go behind colored boxes.
(the colored boxes here represent different images. sorry terrible drawing) when try apply
<hr style="position: relative; width:0px; height:50px; top: 100px;">
the other horizontal lines i've created earlier aren't placed same before. using similar style both horizontal , vertical lines. idea on how or why happens? or impossible do?
thanks in advance!
<div class="test"></div>
sample div created set height how u need
.test{height:100px; width:0px; position:relative; border-left:1px solid gray;}
this work
Comments
Post a Comment