Forums

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

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40934
    fooman
    Participant

    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??

    #115183
    Paulie_D
    Member

    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.

    #115227
    Paulie_D
    Member

    I didn’t realise that your background extended downwards.

    Do you have a link we can look at?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.