The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Sidebar width as long as page?
i have a bg on the left side of the side bar
and u want it to be 100% in height.
this is my current css
here’s a screenshot
You haven’t added the HTML so it’s difficult to give a straight answer. You are going to have to apply a clearfix to the parent element. Have a look at this article: http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack/
If you want a 100% height sidebar ,you could try this solution: http://innonesen.se/test/l-6/
Basically, it is an implementation of : http://www.positioniseverything.net/art … qualheight
which utilizes a long padding for the element , countered with negative margin of the same size.