Universal box-sizing border-box

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

Thanks Paul Irish ;)

Copy this code and paste it in your HTML
  1. /* apply a natural box layout model to all elements */
  2. * {
  3. box-sizing: border-box;
  4. -moz-box-sizing: border-box;
  5. -webkit-box-sizing: border-box;
  6. }

URL: http://paulirish.com/2012/box-sizing-border-box-ftw/

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.