SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict superbird's Avatar
    Join Date
    Aug 2000
    Location
    Swansea, UK
    Posts
    260
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Page margins in Netscape

    How can I stop pages having a margin in Netscape? We need the content to go right up to the edges of the window like it does in IE.
    ...KartLink...

  2. #2
    SitePoint Addict superbird's Avatar
    Join Date
    Aug 2000
    Location
    Swansea, UK
    Posts
    260
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK panic over!

    If anyones interested, we did it by adding style=margin:0px and marginwidth=0 marginheight=0 to the Body tag.
    ...KartLink...

  3. #3
    Rusted & Weathered HumanClay's Avatar
    Join Date
    Sep 2000
    Location
    Milwaukee, WI
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by superbird
    If anyones interested, we did it by adding style=margin:0px and marginwidth=0 marginheight=0 to the Body tag.
    Question: The attributes "marginwidth" and "marginheight" are not valid attributes according to the W3C correct? If so, then the only way to have valid code as stated by the W3C, you would have to use CSS to define no margins in Netscape correct? "topmargin" and "leftmargin" are valid, but only work in IE.
    Steve Caponetto - [profile] [e-mail]
    CreedFeed.com - feed your need for Creed!

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But there is a Catch-22, topmargin and leftmargin are IE specific and valid HTML, but IE also allows you to specify margins using CSS.

    Netscape on the other hand uses marginheight and marginwidth which are aalso valid, but does NOT support margins done with CSS.

    They want us to use valid code but they don't let us. Isn't that peachy of them?
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  5. #5
    SitePoint Zealot
    Join Date
    May 2001
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    add marginspace=0 to your body margins code and it should work in netscape.
    http://winnielim.com- Portfolio site


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
  •