#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Mexico DF Mexico
    Posts
    16
    Rep Power
    0
    Hi

    I wanted to know whats the tag for netscape and explorer to align the page with margin 0 right left and top like the leftmargin="0" in the body tag.

    Cheers
    Luis Tena
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    SPAIN
    Posts
    47
    Rep Power
    15
    If I've understood the question, you need to put this in the body tag:

    leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"

    It will eliminate all the margins of the page.

  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    Alternately create in your <head> or between <head> and <body> :
    <style>
    #MainDiv{position:absolute;top:0;left:0;width:800;height;600:}
    </style>

    then in your body anything placed between:
    <div id="MainDiv">your stuff</div>
    will adhere to those settings, play around with the numbers to create any margins you wish.(in IE or NS 4+)

    Just remember that if you access anything in that div via Netscape you will have to mention where it is , ie - if you have a form in that div you would access it by document.MainDiv.document.formname.fieldname.value.

    Regards,
    Simon.
  6. #4
  7. Webmaster Extraordinaire
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    Woburn, MA
    Posts
    126
    Rep Power
    15
    If you use the following attributes inside your body tag, bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0". This will make your borders 0 in NS 4+ and IE 3+. Just a warning, Netscape 3 does not recognize these tags and you will have a border of about 10 pixels all around. There is nothing you can do about this.

    -Craig Anderson

Similar Threads

  1. Netscape layer positioning problems ..
    By Eternal Student in forum HTML Programming
    Replies: 0
    Last Post: February 12th, 2004, 01:09 PM
  2. Netscape Problems
    By mfrail in forum HTML Programming
    Replies: 5
    Last Post: November 3rd, 2003, 08:41 AM
  3. Replies: 2
    Last Post: August 19th, 2003, 09:36 AM
  4. Pull down menu problems in netscape 6
    By 1010101 in forum HTML Programming
    Replies: 1
    Last Post: April 6th, 2002, 01:55 PM
  5. Print problems with Netscape
    By Schoeni in forum HTML Programming
    Replies: 0
    Last Post: February 18th, 2000, 03:27 AM

IMN logo majestic logo threadwatch logo seochat tools logo