using * { box-sizing: border-box; } can prevent a lot of layout-headaches.
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
Written by Max Strebel
Related protips
1 Response
I use the compass mixin and generates that css:
*
+box-sizing(border-box)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#