Web Development HTML Guide - Learn HTML
Developer Tutorials
ASP
CGI & Perl
CSS
Flash
HTML
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML



Developer Manuals
Learn HTML
Learn PHP
Learn MySQL
Learn CSS
Learn Pear


Developer Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Developer Resources
Developer Tools
Developer News
Developer Forums
Developer Content
Developer Book Reviews
Survey Software

Web Hosting Directory
Budget Web Hosting
ColdFusion Hosting
Dedicated Servers
Domain Hosting
E-Commerce Hosting
Email Hosting
Free Web Hosting
Linux Web Hosting
Managed Hosting
Reseller Hosting
Small Business Hosting
Windows Web Hosting

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 Idocs, Inc. Written by Miko Sullivan











About the NetVisits, Inc Network | Advertise
Developer Tutorials hosted by HostGator.
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: