Skip to content

Instantly share code, notes, and snippets.

@thekarel
Created November 20, 2013 15:14
Show Gist options
  • Save thekarel/7564814 to your computer and use it in GitHub Desktop.
Save thekarel/7564814 to your computer and use it in GitHub Desktop.
box sizing
/*
The width and height properties include the padding and border, but not the margin.
https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing
Default: content-box
*/
element {
box-sizing: border-box;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment