As of Internet Explorer 5.5, this property applies to inline elements. With earlier versions of Internet Explorer, inline elements must have an absolute position or layout to use this property. Element layout is set by providing a value for the height property or the width property. For inline elements, the top and bottom values are used to compute the border area of a surrounding inline element, if present. These values do not contribute to the height of a line.
Margins are always transparent.
The following examples use the margin attribute and the margin property to change the margin of the object. This example uses the img object as a selector to set the margin of images to 1 centimeter. This feature requires Microsoft Internet Explorer 4.0 or later. Click the icon below to install the latest version. Then reload this page to view the sample.