Tired of doing crazy calculations and adding unneeded wrapper divs to keep your web layouts from falling apart? You might want to try using ‘box-sizing’ to declare an alternate box model. Lets you keep padding ‘inside’ your declared container width, instead of adding to the overall width. It even works in IE8+!
Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
One Response to Box Sizing | CSS-Tricks