Setting HTML Web Page Margins
|
If you'd like
your web page to display without margins, you can set, remove or adjust them
by placing the following attributes within your <body> tag.
To remove the top, bottom and side page margins on a web page, place the
following code within your <body> tag:
<body
bgcolor="#ffffff" topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0
marginheight=0 marginwidth=0> |
This code is
compatible with both Internet Explorer and Netscape Navigator.
Internet Explorer supports:
topmargin=0
bottommargin=0
leftmargin=0
rightmargin=0
Netscape Navigator supports:
marginheight=0
marginwidth=0
Make sure you use them all to enable your web page to be properly viewed
in both browsers.
By specifying your web page margins, you can ensure that your web page will
display exactly as you had intended.
More Web Design
Tips |