IE 3.00 interprets all margins as relative to the left of the page rather than the left of the element. The box shorthand property allow you to specify the box style for all four sides at once. Margin Clearly each element can have four margins - left, right, bottom and top. The margin can be specified in any length, a percentage, or using the auto keyword. The percentage refers to the width of the containing block , regardless of whether it is applied to the left and right or top and bottom margins.
Auto is principally useful in more advanced contexts, and is discussed later .
In addition, the margins can be specified for all four sides at once with the margin shorthand. Margins can be negative, and initially margins are 0 . However, margins between floated or positioned elements and any other element do not collapse. This would give P a left margin of 2 inches. This would give P a top margin of one pixel, a right margin of 2 inches, a bottom margin of 3 cm and a left margin of 4 points.