SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2000
    Location
    Virginia
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3
    SitePoint Zealot
    Join Date
    Dec 1999
    Location
    Highlands Ranch, CO
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No its not necessary to have all six tags you could use:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    &lt;style&gt;
    body { margin: 0 0 0 0; }
    &lt;/style&gt;
    [/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


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •