SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Dec 2002
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool setting margins to zero for netscape

    Gidday All,

    Im trying to validate our site as XHTML 1.0 transitional but can't as we use the following attributes in our body tag.

    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

    Now I no that in my style sheet if I do

    body {margin:0;}

    that this works for IE but can I get it to work for Netscape.

    Please

  2. #2
    SitePoint Zealot 19nine78's Avatar
    Join Date
    Feb 2002
    Location
    Ayr, scotland
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    body {margin:-10px 0 0 -10px}
    html body {margin:0;padding:0}

    first line removes them in NS4, second line sets them back to zero in IE, NS6 and opera.

    cheers

    alastair


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
  •