Stop page extending out of viewport width by 40px

Currently the .container and .wrapper-footer elements are set to 100%,
and also have horizontal padding added to them. This results in a total
width of greater than the full width of the viewport; This causing the
browser to scroll horizonally into empty space, regardless of how wide
the viewport is.

I had added the `box-sizing: border-box` to these elements in order to
resolve this.

Cheers,
Louis
This commit is contained in:
Louis Pilfold
2014-10-13 14:43:16 +01:00
parent 61dbd70cf6
commit a501fbfc2d
2 changed files with 2 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ a:focus {
.container {
@include clearfix;
box-sizing: border-box;
margin: 0 auto 0;
padding: 0px 30px;
max-width: grid-width(12);

View File

@@ -8,6 +8,7 @@
footer {
@include clearfix();
box-sizing: border-box;
max-width: grid-width(12);
min-width: 760px;
width: flex-grid(12);