I need to make a simple web page using CSS however i couldn't find out some simple yet one eluding thing: a css vertical line which stretches through the page.
What i try to achive is to put a floating red vertical 1px line (which is 20 px left of the right margin) and put a floating simple logo just on top of it. The reason i need to do is that the placement of the logo should be resolution independent...
Should i use a contender div which is covering the whole page and put inside a div with low z-index ?
Question
yodat
I need to make a simple web page using CSS however i couldn't find out some simple yet one eluding thing: a css vertical line which stretches through the page.
What i try to achive is to put a floating red vertical 1px line (which is 20 px left of the right margin) and put a floating simple logo just on top of it. The reason i need to do is that the placement of the logo should be resolution independent...
Should i use a contender div which is covering the whole page and put inside a div with low z-index ?
Can anyone give me a hint ?
Thx in advance
Link to comment
https://www.neowin.net/forum/topic/1151918-vertical-line-with-css/Share on other sites
19 answers to this question
Recommended Posts