Streaming live at 10am (PST)

Turning off Horizontal Scroll with Overflow Elements


I’m designing a site with several angled/diagonal elements that extend beyond the screen, on purpose. I am trying to hide horizontal scrolling so the edge of the elements remain hidden, but I’ve been struggling.

I’ve turned Body:overflow to “scroll” mode, but I only want it to scroll vertically.
I’ve tried to nest angled elements inside a container and set the container to overflow:hidden, but I can’t get it to work as intended.

I’ve also tried adding this custom code to the <header> (am I doing this wrong?) based on a very helpful suggestion, but that hasn’t worked either.

body {
overflow-x: hidden;

Any recommendations? Site link is below, I’m on a macbook pro using Chrome.

Thank you!

Here is my public share link:

Hey @zbaumel,

In our experience we have not needed to enter anything in the custom code section to achieve this. We had an issue with horizontal scroll that was solved by making sure out website BODY and SECTION elements were set to “overflow: hidden”. Hope this helps.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.