Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Blog Archives

Box Sizing | CSS-Tricks

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+!

Box Sizing | CSS-Tricks