Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

margins

Posted on 1998-08-21
4
Medium Priority
?
233 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
[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
  • 2
  • 2
4 Comments
 
LVL 1

Author Comment

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

Accepted Solution

by:
jbirk earned 120 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

715 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