HTML / CSS basic concepts and principles
Tuesday, January 25th, 2011The CSS box model
The CSS box model is a W3C standard that draws the basic principles on which a box is drawn in HTML/CSS. Since every HTML element is actually a box, this principle applies to every element. Basically it states that the screen estate a box takes up is defined by the following parameters, in this order from inside to outside:
- width/height
- padding
- border
- margin
Here the content area is defined by width/height. (more…)