Box Model

HTML element has associated with box. The box has four parts.

contentthe actual of the element
paddingthe area between the content and the border
borderthe edge of the element
marginthe area between the element and similar adjacent elements

Points to Remember
-The margin is transparent
-The border has an associated background
-The padding and the content share the background property defined for the elements.
-The margin, border and padding have a top, right, bottom, and left sub parts for which you can set individual properties.
Related Tutorial
3 Margin
4 Border
Follow Us #