Skip to content

Commit

Permalink
Better border-box reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Offirmo authored and mike-engel committed Aug 1, 2019
1 parent 73fea74 commit 46b7fbf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions reset.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
*,
*::before,
*::after {
box-sizing: border-box;
}
/* apply a natural box layout model to all elements, but allowing components to change
* https://www.paulirish.com/2012/box-sizing-border-box-ftw/
*/
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

html,
body {
Expand Down

0 comments on commit 46b7fbf

Please sign in to comment.