Attributes for <BODY ...>
TOPMARGIN
LEFTMARGIN = integer
MARGINHEIGHT
MARGINWIDTH

Usage Recommendation
use it, but don't rely on it

TOPMARGIN and LEFTMARGIN establish margins in MSIE. MARGINHEIGHT and MARGINWIDTH establish margins in Netscape. If you feel that you just have to have that extra half inch, these attributes can give it to you. These MSIE and Netscape extensions are mutually compatible: you can use all of them to catch both of those browsers.

This body tag:

<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>

helps create zero (actually almost zero) margins in this page.

Don't confuse the use of MARGINHEIGHT and MARGINWIDTH in <BODY ...> with their uses in frames. When you use frames, put MARGINHEIGHT and MARGINWIDTH in the <FRAME ...> tag, not in <BODY ...>.

illustration of LEFTMARGIN and TOPMARGIN

illustration of MARGINHEIGHT and MARGINWIDTH





About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.