Previous Up Index Next

Release Notes for Internet Explorer 3.01


Internet Explorer version 3.01 includes a change in HTML margin handling when using style sheets. HTML pages that take advantage of this feature will not display in the manner specified when viewed with Internet Explorer 3.0. The following describes how to author HTML pages with margins that are rendered the same size in version 3.0 and 3.01.

In Internet Explorer 3.0:

Margins function as absolute instead of relative margins. For example, with a 1-inch left margin in the BODY element and a 0.5-inch left margin on a paragraph inside BODY, a paragraph would be 0.5 inches, instead of 1.5 inches, from the left side of the window. This includes vertical margins.

In Internet Explorer 3.01:

All margins use relative sizes. For example:

<BODY STYLE="margin-left: 1in; margin-right: 1in">
<P STYLE="margin-left: 0.5in; margin-top: 1.5in">This is some text.</P>
</BODY>

This text will have an effective left margin of 1.5 inches and an effective right margin of 2.5 inches.

Creating a page compatible with Internet Explorer 3.0 and 3.01:

By not specifing more than one margin in the hierarchy, your HTML page is compatible with both Internet Explorer 3.0 and 3.01. For example:

<BODY>
<P STYLE="margin-left: 1.5in; margin-right: 2.5in">This is some text.</P>
</BODY>
Previous Up Index Next

© 1996 Microsoft Corporation