So on my website I have parts of the website that go off the screen, to fix this I used this css * {overflow: hidden;}
or body {overflow: hidden;}
but currently none of them are working and the scrollbars are there.
CodePudding user response:
Try giving the parts themselves some css too, you could either try giving each of them one or multiple of the following css:
width: 100%;
height: 100%;
float: left;
or you could also try putting them inside a div and styling the div too by attaching a class to the div <div ></div>
and then adding the overflow:hidden;
to that new div instead of the website body itself
CodePudding user response:
You may have an overflowing element on the screen, check it. If you still want to try;
overflow-x: hidden;
overflow-y: hidden;