I am facing an issue with displaying a horizontal scrollbar on my website when resizing the browser window. Whenever I use the {overflow-x:auto;}
property, a scrollbar appears instantly even if the browser window is maximized, leaving around 100 pixels of blank space on the right side of my webpage.
body {
padding: 0;
margin: 0;
}
.container {
font-size: 0;
height: 100%;
width: 100%;
position: fixed;
top: 0px;
bottom: 0;
overflow-y: scroll;
overflow-x: hidden;
}