The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › overflow-x on body causes background to not scroll
If I set overflow-x:hidden on the body/html tags, my background image will not scroll, it acts as if it’s fixed.
Can anyone explain why this happens??
Because you are telling the viewport not to show anything beyond what it already is. In effect you are freezing the initial window…if it can’t scroll the background doesn’t need to move.
I didn’t realise that your background extended downwards.
Do you have a link we can look at?