Universal box-sizing with inheritance


/ Published in: CSS
Save to your folder(s)

Found on CSS-Tricks


Copy this code and paste it in your HTML
  1. html {
  2.  
  3. box-sizing: border-box;
  4. }
  5. *,*:before, *:after {
  6. box-sizing: inherit
  7.  
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.