Home › Forums › CSS › Background element full width within restricted element › Re: Background element full width within restricted element
March 29, 2013 at 11:15 am
#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;
}