Width: 100% Without Scrollbars

That’s because you’re using position: absolute.

Instead of using:

width: 100%; margin-right: 10px; margin-left: 10px

you should use:

left: 10px; right: 10px

That will make your element take the full width available, with 10px space on the left and right.

Leave a Comment

tech