1. Home
  2. Computing & Technology
  3. Web Design / HTML

Illustrated CSS Box Model

By , About.com Guide

The CSS Box Model is the model that describes how all elements should be placed on a Web page. There are four parts to the box model:

  • content
  • padding
  • border
  • margin

This gallery illustrates how the box model works. You see the different parts of the box model in different colors to make it clearer what is where.

Images 1-5 of 5
Box Model ContentBox Model ContentPadding AddedPadding AddedAdd a BorderAdd a BorderMargins On the EdgeMargins On the Edge
Box Model HackBox Model Hack
  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. CSS Box Model - Illustrated CSS Box Model>

©2009 About.com, a part of The New York Times Company.

All rights reserved.