html, body { margin: 0; padding: 0; overflow-x: hidden; } html { overflow-y: scroll; overflow-x: hidden; width: 100%; height: 100%; }