box-sizing: Making Width Mean What You Think

By default a box's width leaves out its padding and border, so it comes out wider than you asked; box-sizing border-box makes the width you write the width you get.

Updated

Cheat sheet: box-sizing: Making Width Mean What You Think
Category
CSS
Level
Apprentice
Tags
Border box, Box sizing, Content box, CSS, web-development, Width