-
Hey...
I know this question has been asked before, but how do I set the margins (top and left) to zero for Netscape. It's so easy in IE, but regardless of what code I try, there is that stupid border on the top and left. I am using some DHTML for a menu and with that border it throws everything off.
Thanks for the help...
Tom
-
For no margins in either of the big two just add:
"marginwidth='0' marginheight='0' marginleft='0' margintop='0'" to your body tag.
------------------
Wayne Luke - Sitepoint Moderator/Internet Media Developer
Digital Magician Studios - Making Magic with Web Applications
wluke@digitalmagician.com
-
Is this completely correct? I tried it in IE, but lost the topmargin=0 and leftmargin=0.
I added those tags to what wluke said:
leftmargin="1" topmargin="1" marginwidth="0" marginheight="0" marginleft="0" margintop="0"
Is this the correct code? I am trying to figure out ALL of the tags that begin with 'margin' do.... Is it necessary to have all 6 tags?
Thanks,
Chad
-
No its not necessary to have all six tags you could use:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
<style>
body { margin: 0 0 0 0; }
</style>
[/code]
THis of course only works in 4+ version browsers though, but hey your not going to ever achieve the same layout in older browsers as in 4+ browsers unless you only use HTML 2.0 tags anyway. AS long as it is still functional and readable in older browsers than that is all you can do.
------------------
Wayne Luke - Sitepoint Moderator/Internet Media Developer
Digital Magician Studios - Making Magic with Web Applications
wluke@digitalmagician.com