Skip to content

Instantly share code, notes, and snippets.

@BartlomiejSkwira
Created May 6, 2013 08:41
Show Gist options
  • Select an option

  • Save BartlomiejSkwira/5524031 to your computer and use it in GitHub Desktop.

Select an option

Save BartlomiejSkwira/5524031 to your computer and use it in GitHub Desktop.
Natutal box-sizing in CSS - so we don't need to substract width and padding
/* apply a natural box layout model to all elements */
* { -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