body margin

<body topmargin="" leftmargin="" marginheight="" marginwidth="">

Internet Explorer Firefox Opera

The following attributes of the BODY element sets the margins of a document.

MSIE, Opera
<body topmargin="0" leftmargin="0">

Firefox, Opera
<body marginheight="0" marginwidth="0">

MSIE, Firefox, Opera
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

Body Margin

Attribute Value Explanation
MSIE Extension Internet ExplorerOpera
topmargin=" " pixels top margin
leftmargin=" " pixels left margin
Netscape Extension FirefoxOpera
marginheight=" " pixels top and bottom margins
marginwidth=" " pixels left and right margins

Extension attributes. (Non standard attributes)

Tips and Notes

Use CSS instead of this attribute. Please see the "Related Document" for details on CSS.


<title>TAG index</title>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">