Solved

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

Posted on 1999-01-21
3
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Expert Comment

by:PBall
ID: 1845592
<style>
body {
  margin:0px 0px 0px 0px;
  padding:0px 0px 0px 0px;
}
</style>

try that...
0
 
LVL 10

Expert Comment

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

Accepted Solution

by:
ppaulinolopes earned 100 total points
ID: 1845594
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

752 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