Interactively explore margin, border, padding, and content with a live diagram.
CSS Box Model Visualizer is a free visual design tool that helps front-end developers and designers interactively explore margin, border, padding, and content with a live diagram with a live preview. Instead of writing CSS by hand and refreshing your browser repeatedly, use this interactive tool to experiment with values and copy the generated code directly into your project.
box-sizing: border-box, the width and height you set include padding and border. So a 200px element stays 200px even with padding. Without it (content-box), padding and border add to the total size.