provided by: 
Originally published at Internet.comW3C's style sheet recommendation provides you the capability to define the borders, margins, and padding for elements on the Web page. You can wrap a border around a heading, for example, or change the margins of the
tag so that any occurrences of this tag are indented into the page. Here's an overview of the properties that you can use to change the boxes associated with an element: Border You use the border properties to set the left, right, top, and bottom borders of an element. You can set the border's width, color, and style. Margin You use the margin properties to set the left, right, top, and bottom margins of an element. With these properties, you only specify the size of the margin. Padding You use the padding properties to specify how much space the browser displays between the border and the content of the element. With the padding properties, you only specify the size of the margin.
Figure B.1 shows you how the border, margin, and padding properties work with the height and width properties to form the boxes around the element. The following list describe these in more detail: * The height and width properties determine the overall size of the element's containing box.
...
Read article at Internet.com site