The following div
has a width of 100%
.
But it exceeds the window width
because it uses the standard box model
to calculate the final width.
Use the box-sizing
property to make the div
including its padding and border occupy 100% width and
still not exceed the window width.