Skip to content

Instantly share code, notes, and snippets.

@conwayeast
Created May 15, 2015 13:59
Show Gist options
  • Select an option

  • Save conwayeast/affeb68584bff4f07215 to your computer and use it in GitHub Desktop.

Select an option

Save conwayeast/affeb68584bff4f07215 to your computer and use it in GitHub Desktop.
Instead of calculating width by including padding and border, the box-sizing property in combination with the border-box value uses the width property as the actual rendered width.
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment