Forums

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

Home Forums CSS Background image size cover moves on mouse click

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

    HI all, I have this site: wixwebsite.seobrasov.com having the background image fixed with size cover. However, when you click one of the links, the background moves. Why is that?
    Thank you!

    #162438
    Paulie_D
    Member

    Cannot reproduce.

    Is this specific to a browser?

    #162445
    Soren
    Participant

    Your background resizes because the vertical scrollbar is present when content is taller than viewport height. The scrollbar reduces your container’s width so you’re seeing the bkg image adjusting to the new size.

    One solution-ish: https://css-tricks.com/snippets/css/force-vertical-scrollbar/

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