Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

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

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire