Forums

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

Home Forums CSS Background element full width within restricted element Re: Background element full width within restricted element

#126262
crowdis
Member

I tried using `position: absolute;` to break the element out of the parent. I could get it to extend to the right, but I couldn’t pull it back to the left or center it in the window.

.testmain {
position: relative;
width: 960px;
margin: 0 auto;
}

.testsub {
position: absolute;
color: white;
width: 3000px;
margin: 0 auto;
}