Difference between revisions of "Box model (CSS)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(See also)
(See also)
Line 22: Line 22:
 
* [[Background (CSS)]]
 
* [[Background (CSS)]]
 
* [[Cascading Style Sheets]]  
 
* [[Cascading Style Sheets]]  
 +
* [[Margin (CSS)]]
 +
* [[Padding (CSS)]]
 
* [[Web design]]
 
* [[Web design]]
 
* [[Web page layout]]
 
* [[Web page layout]]

Revision as of 11:57, 3 May 2016

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