Example of TOPMARGIN, LEFTMARGIN, MARGINHEIGHT and MARGINWIDTH attributes for <BODY ...>

This page is an example of TOPMARGIN, LEFTMARGIN, MARGINHEIGHT and MARGINWIDTH. If your browser recognizes these attributes (Microsoft Internet Explorer recognizes TOPMARGIN and LEFTMARGIN, Netscape recognizes MARGINHEIGHT and MARGINWIDTH) then the text is scrunched up right against the top and left sides of the window. The <BODY ...> tag used to create this not-particularly-pleasant effect is this:

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

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 ...>. back to <BODY TOPMARGIN="...">

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.