Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Getting my Sidebar 100% Height Re: Getting my Sidebar 100% Height

#107732
timmey
Member

maybe you can start with this


#wrapper {
margin:0;
padding-right:250px;
position: relative;
height: 100%;
overflow: hidden;
}
#sidebar{
border-top: 1px solid black;
padding:30px;
background:#343434;
position: absolute;
top: 0;
left: 0;
bottom: 0;
height: 100%;

}

the trick is that when you use position absolute with top/right/bottom/left 0 it fills the container.