Created
November 14, 2013 03:47
-
-
Save carlos-sanchez/7461017 to your computer and use it in GitHub Desktop.
Border Box Model.
It turns out that pseudo-elements are not included in the universal selector, so if you want your pseudo-elements to have a proper box-model like everything else, you should include them in the declaration.
Si algún elemento de la página da problemas hacemos que vuelva al modelo de toda la vida (content-box): elemento-que-sea{ …
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
*, *:before, *:after { | |
-webkit-box-sizing: border-box; | |
-moz-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