Posted By

kyllle on 12/29/12


Tagged


Versions (?)

border-box


 / Published in: CSS
 

URL: http://tympanus.net/codrops/2012/10/25/kick-start-your-project-a-collection-of-handy-css-snippets/

border-box for box-sizing which will allow us to define percentages for widths and heights of elements while using paddings, without worrying about oversizing elements.

  1. *, *:before, *:after {
  2. -webkit-box-sizing: border-box;
  3. -moz-box-sizing: border-box;
  4. box-sizing: border-box;
  5. }

Report this snippet  

You need to login to post a comment.