Box model (CSS)

From Wiki @ Karl Jones dot com
Revision as of 05:26, 3 May 2016 by Karl Jones (Talk | contribs) (Description)

Jump to: navigation, search

In Cascading Style Sheets, the box model defines the web page layout of HTML elements.

Description

The box model is a rectangular box that wraps around elements.

Layers

The box has several layers, nested inside each other:

  • Margins
  • Borders
  • Padding
  • Content

Diagram

Boxarea.png

See also

External links