Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transform Translate with Positive Value make a scrollbar

Tags:

css

I try to make a mobile menu: http://animesector.budi.upperyard.de/

You can see at the top Header Bar 2 Menu Buttons. The right one give the Content area transform(translateX(-200px)); The left one give the Content area transform: translateX(200px);

The Negative (-) value dont create a Scrollbar horizontal Scrollbar... But the Positive one does. have anyone any solution for this problem?

I tried to give the div around a overflow: hidden; but this didn't work for me.

like image 747
Sven Budak Avatar asked Oct 19 '22 13:10

Sven Budak


1 Answers

You can prevent the horizontal scrollbar with overflow-x: hidden in the body element. Tried it right in the browser with dev tools and worked perfectly.

like image 64
Wazaraki Avatar answered Oct 21 '22 20:10

Wazaraki