Learn HTML Code Tutorial Reference Guide

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

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial