aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes No margins in Netscape? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "No margins in Netscape?" Watch "No margins in Netscape?" New topic
Author

No margins in Netscape?

Sarva Pandian
Greenhorn

Joined: Sep 21, 2000
Posts: 17
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

Joined: Aug 01, 2000
Posts: 20
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

Joined: Jun 30, 2000
Posts: 1070
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

Joined: Sep 21, 2000
Posts: 17
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

Joined: Jun 30, 2000
Posts: 1070
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

Joined: Sep 21, 2000
Posts: 17
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

Joined: Sep 21, 2000
Posts: 17
Hi Ray,
I tried your codes and its working fine.
Thanks for your help!!
Sarva Pandian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No margins in Netscape?
 
Similar Threads
applet not sizing correctly
netscape and row height
Working in ie but not working in netscape
WA #1.....word association
Passing a Value from Popup Window back to the Parent Window