Forums

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

Home Forums CSS Background image in a sidebar Re: Background image in a sidebar

#71295
ozee
Member

I was able to get this to work by using positioning and setting a top, a bottom and a left position to the sidebar since you have a fixed width on the content, this can work for you.

#content {
margin-top: 0px;
position: relative;
overflow: auto;
}

#main-content {
width: 650px;
line-height: 15px;
font-size: 12px;
padding-bottom: 40px;
position: relative;
}

#sidebar-wrapper {
background: url(/images/sidebarbg.png) repeat-y;
margin-top: 0px;
width: 300px;
position: absolute;
top: 0;
left: 650px;
bottom: 0;
}