Difference between revisions of "Box model (CSS)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
m (Karl Jones moved page Block Model (CSS) to Box model (CSS))
Line 1: Line 1:
In [[Cascading Style Sheets]], the '''block model''' defines the layout of [[HTML elements]].
+
In [[Cascading Style Sheets]], the '''box model''' defines the [[web page layout]] of [[HTML elements]].
  
 
== Description ==
 
== Description ==
  
...
+
The box model is a rectangular box that wraps around elements.  
 +
 
 +
The box has several layers, nested inside each other:
 +
 
 +
* Margins
 +
* Borders
 +
* Padding
 +
* Content
  
 
== See also ==
 
== See also ==

Revision as of 10:33, 25 April 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.

The box has several layers, nested inside each other:

  • Margins
  • Borders
  • Padding
  • Content

See also

External links