• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Blazing Browsers: Real World ... > Alright, Netscape 4.X, Hold Those Ma...

Alright, Netscape 4.X, Hold Those Margins, Buddy!

So, you’re cool, you’re hip, you’re savvy—you nod knowingly when fellow web designers mention the “@Import trick” (if you don’t, sneak over to Chapter 2, quick like a bunny)—but what do you put in those style sheets intended for only Netscape 4.x? One of the headache-inducing Netscape 4.x issues is how it handles page margins. With Internet Explorer 4+ or Netscape 6 and greater, use CSS to set the <body> margins to 0 and you’re done; with earlier versions of Netscape, it’s hoop-jumping time. First, in the Netscape-specific style sheet—the one you link, not import—set the top and left margins to –10.Yes, that’s negative 10. Why? Don’t ask. Next, in the Page Properties dialog (Modify > Page Properties), set Margin Width and Margin Height both to 0. (One caveat: Right and bottom margins are supported by Netscape 4, so this tip won’t help table layouts set to 100%). With both the CSS and HTML specifications in place, Netscape 4.x margins are as snug as a bug in a rug.

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint