Monday, August 2, 2010

Box Model


The Box Model in CSS is basically a box that wraps around HTML elements. The Box Model consists of margin, border, padding, and the actual content. This allows you to to place a border around elements and space elements next to other elements.

Margin - Clears an area around the border. The margin does not have a background color, and it is completely transparent
Border - A border that lies around the padding and content. The border is affected by the background color of the box
Padding - Clears an area around the content. The padding is affected by the background color of the box
Content - The content of the box, where text and images appear

No comments:

Post a Comment