Solved

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

Posted on 1999-01-21
3
249 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Link a VBS to an HTA 6 35
How can I convert HTML files to .pdf files? 9 53
How would I do a website like this? 5 52
Select case on click 3 13
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

815 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

10 Experts available now in Live!

Get 1:1 Help Now