Solved

margins

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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…

747 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