Solved

margins

Posted on 1998-08-21
4
228 Views
Last Modified: 2010-04-09
In IE you can use a 'command' inside the body-tag that makes it possible for the html-author to decide the distance from the html-code and the margins. It could look something like this:

<body topmargin="0" leftmargin="5">

However, I havent been able to get this to work with Netscape Communicator. I know that it can be done because I have seen other pages that has gotten this effect when viewed in Netscape but looking in the source-code havent helped me so far.

My question is as follows: How can I make this work in both Netscape and IE?

/dedsi
0
Comment
Question by:dedsi
  • 2
  • 2
4 Comments
 
LVL 1

Author Comment

by:dedsi
ID: 1836884
Edited text of question
0
 
LVL 8

Accepted Solution

by:
jbirk earned 30 total points
ID: 1836885
Well in Netscape the commands marginwidth and marginheight work.  They have the same effect as IE's topmargin, etc, except that it effects the top AND bottom with the one command...  So I suppose to get it working for both browsers, you could try like:
<BODY marginwidth=0 leftmargin=0 topmargin=0 marginheight=0>
I'm not sure what the IE commands are so I just used what you wrote.  You said you had it working on IE, so I assume that you already know those commands.

Hope this works for you,
josh
0
 
LVL 1

Author Comment

by:dedsi
ID: 1836886
Hi Jbirk,

that command was exactly the one I was looking for and it seems to work fine in Netscape Communicator 4.x. and in IE. Its one thing though, do you know what versions of Netscape and/or IE that supports these commands? It work with version 4.x (both browsers) but do you know about the older versions? I will give you your points even if you cant answer this as soon as you have commented this comment.

/dedsi
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1836887
Well, netscape 3 does NOT support this command.  I cannot run IE 3 since I have IE 4 installed so I do not know if it will support that command or not.  My educated guess is no, it will not support that, but it's only a guess.

Glad I could help!
-Josh
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
multiple selects 23 62
Button on Table, name table1 not working 4 33
Validating Date Part2 2 25
Add a little space on either side of a table. 12 25
Find out what you should include to make the best professional email signature for your organization.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…

685 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