14
tahnik
8y

Working on my website. Ranting on positioning my background which uses CSS perspective and translateZ to move slowly when someone scrolls.

Can't figure out a way to make it not overflow the whole document for almost 3 days.

Out of frustration changed the position to fixed.

And the problem was gone :( :D :(

I have no idea if I should cry or laugh loudly

Comments
  • 3
    On the parent element:
    overflow: hidden;
  • 1
    PositioningGotYouDown{
    position:fixed; /* there. all better. */
    }
  • 1
    @RinseRepeat Actually I have that on my body haha
  • 0
    @tahnik you will also need a height to be set for the overflow property to work correctly. The body would probably not be a good option for it either because I'm guessing you still want to scroll the page itself.
Add Comment