Skip to content

Instantly share code, notes, and snippets.

@carlos-sanchez
Created November 14, 2013 03:47
Show Gist options
  • Save carlos-sanchez/7461017 to your computer and use it in GitHub Desktop.
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{ …
*, *: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