Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No margins in Netscape?

 
Sarva Pandian
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to define margin space for Netscape? I tried using marginheight=0 and marginwidth=0 but still I get space at the right and at the bottom
Sarva
 
Ray Hunter
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is some code that will help you with this problem in Netscape. I use CSS to solve this. Here is some really basic code.
<style type="text/css">
body{
margin-bottom : 0px;
margin-left : 0px;
margin-right : 0px;
margin-top : 0px;
}
</style>

I use a back style tag with the body element and the margin attributes.
Hope this helps you out.
Ray
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also say:
<body marginheight="0" marginwidth="0" topmargin="0" rightmargin="0" leftmargin="0" bottommargin="0">
This works in both IE and Netscape. If you want to change the leftmargin, you need to change the value of leftmargin="10" and marginwidth="10" to get it to work in both browswers.
Bill
 
Sarva Pandian
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I tried using the margin tags, but still some space is left over at the right and bottom when I view with Netscape. Its working fine with IE.
Sarva Pandian
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your code and let me view it on my machine. I have never had a problem with the above body tag.
Bill
 
Sarva Pandian
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,
I first used the margin tags with Netscape 4.6 and it did not work. I upgraded the version to 6.0 and its working fine.
Thanks for ur help!!
Sarva Pandian
 
Sarva Pandian
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ray,
I tried your codes and its working fine.
Thanks for your help!!
Sarva Pandian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic