Home › Forums › CSS › need a background trick › Re: need a background trick
June 27, 2012 at 9:16 am
#104923
Member
Well, without digging through your css some more, by setting the height to 100% you are setting it to the height of the viewport, so when you scroll down this element retains its height – i.e. the height of the viewport. Since you have positioned it absolutely it moves up with the page – it is stuck to the top of the page.
That’s why it is happening, you’re better off finding a way to get the styling right without presentational only divs or other elements.