Solved

IE4 IE5 NS4.5 NS4.0 Margin/Style Incompatiblity

Posted on 1999-01-21
3
238 Views
Last Modified: 2010-04-09
I'm having a problem with the Margins/Styles for Netscape 4.5, 4.0, and Internet Explorer 4.0 and 5.0.   The problem
is that I have a background graphic, and am trying to allign text and graphics up in a window with 0 border/margin.  It seems IE 4.0 and 5.0 handle the Margin's differently.  And Netscape 4.0 and 4.5 ignore it, but use Styles.  But neither of the Netscapes start at a true (0,0) pexil origin.  Is there a way to combat this problem short of Scripting a page to call up different HTML code for each browser?
0
Comment
Question by:RobTaylor
3 Comments
 
LVL 6

Expert Comment

by:PBall
Comment Utility
<style>
body {
  margin:0px 0px 0px 0px;
  padding:0px 0px 0px 0px;
}
</style>

try that...
0
 
LVL 10

Expert Comment

by:MasseyM
Comment Utility
<BODY MARGINTOP="0" MARGINLEFT="0" MARGINBOTTOM="0" MARGINRIGHT="0">  works in Netscape.
0
 

Accepted Solution

by:
ppaulinolopes earned 100 total points
Comment Utility
You could change the registry of IE to set margins to zero.

How?

Run REGEDIT.EXE from 'Start -> Run' and go to "My Computer\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup" directory.

Then, click on margim_bottom, margim_left, margim_right and margim_top, and set values to "0.000000" (without quote marks).

p.s.: note that is important to set the value with all zero digits.

Good Luck!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now