margin | WebReference


Name: margin

Description: Sets the margin properties. Used as a type of shortcut, instead of listing each property separately.

Browser Compatibility: IE 3+ / NN 4+ / O 3.5+

Inherited: No


Code Example:

body {margin: 10px 25px 15px 25px;}

Comments: The margins are set in a clockwise order, beginning at the top: top, right, bottom, left.