Created
July 9, 2022 23:20
-
-
Save vital-tech-results/f97cdfbb6e9022e386e0da4e2a703902 to your computer and use it in GitHub Desktop.
frontend masters Jen Kramer suggested this should be default on every CSS file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Border box declaration https://www.paulirish.com/2012/box-sizing-border-box-ftw/ */ | |
html { | |
box-sizing: border-box; | |
} | |
/* inherit border-box on all elements in the universe and before and after */ | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment