Checkpoint: Quick Check
August 8, 2012
What is the box model?
The term “box model” is often used by people when talking about CSS-based
layouts and designs. Any HTML element can be considered a box, and so the box model
applies to all HTML and XHTML elements. It is a specification that defines how a box
and its attributes relate to each other. The box model tells browsers that a box defined as
having a width of 100 pixels and the height of 50 pixels should be drawn 100 pixels wide
and 50 pixels tall.
What is padding?
The padding is the white space that surrounds the box content. Padding clears an
area around the content of an element. The padding is affected by the background color
of the element. There are four areas of padding which include the top, right, bottom and
left however all of the areas can be changed independently using separate properties.
This is the end of the preview. Sign up
access the rest of the document.