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
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?
Is this specific to a browser?
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/