Setting Your Page Margins Since the inception of the very first HTML document, margins existed that
surrounded the document, like in the case with this document. The margins are there to act
as a cushion between the edges of the browser and the contents of the page, so it's easier
to read this content. -Eliminating the document margin in IE 3+ To get rid of the document margin in IE 3 and above, so content presses right against the edges of the browser, use the IE exclusive "leftmargin" and "topmargin" attributes: <body leftmargin="0" topmargin=0"> It's as simple as that! -Eliminating the document margin in NS 4+ To get rid of the document margin in NS 4 and above, use the NS 4 exclusive "marginwidth" and "marginheight" attributes instead: <body marginwidth="0" marginheight=0"> -Putting it all together By putting the two techniques together, we can create a document that flushes out its' margins in both IE 3+ and NS 4+: <body leftmargin="0" topmargin=0" marginwidth="0" marginheight=0"> Try out the above declaration on your page, and you'll see what I mean. ----------------------------- |
Join Today - Sign-In -
Affiliate Program - About Us - Privacy Statement - Site Map - RSS - Blog
GraphicsFactory.com is Celebrating 12 Years Online!
Copyright © 1997-2009 GraphicsFactory.com. All Rights Reserved.