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

Illustrated CSS Box Model

From Jennifer Kyrnin, About.com

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.

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. CSS Box Model - Illustrated CSS Box Model

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

All rights reserved.