Skip to content

Instantly share code, notes, and snippets.

@profstein
Last active December 7, 2022 19:57
Show Gist options
  • Save profstein/f5f46039a02b89d45dbc to your computer and use it in GitHub Desktop.
Save profstein/f5f46039a02b89d45dbc to your computer and use it in GitHub Desktop.
Paul Irish Updated Box-Sizing: Border-Box
/* this is taken directly from http://www.paulirish.com/2012/box-sizing-border-box-ftw/ based on his August 2014 update */
/* apply a natural box layout model to all elements, but allowing components to change */
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment