Solved

margins

Posted on 1998-08-21
4
226 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Form Processing in PHP 11 41
Split in Javascript 5 39
Are there any non javascript based chart/graph solutions? 14 31
Html test in IIS 4 20
This article discusses four methods for overlaying images in a container on a web page
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.
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

786 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