?
Solved

Page 'margins' in Navigator?

Posted on 2000-03-21
5
Medium Priority
?
224 Views
Last Modified: 2010-04-09
I'm sure this is something reasonably simple, but I've been tearing my hair out.
Since using frames forever I'm redesigning an entire site without them, and I cannot for the life of me get my tables to sit right against edge of the browser window in Netscape. It seems to place a margin all the way around the page.
I can see the same thing happening in IE, but it's only 1 pixel so it's fine.

The problem is that I have javascript elements which are positioned using X and Y coordinates, so they are in the right place, but all the other page elements are offeset by this l;arge border around the page.

I know the topmargin and leftmargin <body> attributes aren't recognised by Navigator, so what do I do?
0
Comment
Question by:REMarlow
[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
5 Comments
 

Expert Comment

by:Deathead
ID: 2640623
use javascript to see if the browser is netscape and reposition the elements accordingly, it may take a little time to get the right pixils but once you have that the rest should be a cinch
X.Deathead
0
 
LVL 8

Accepted Solution

by:
jbirk earned 200 total points
ID: 2640966
Try using:
marginwidth="0" marginheight="0"
in the body tag.

-josh
0
 
LVL 32

Expert Comment

by:Batalf
ID: 2641308
Or make your self a stylesheet :

<style type="text/css" media="screen">
               body {margin-left:0pt;margin-top:0pt}>

between the <header> and </header> tag.

Batalf

0
 
LVL 1

Expert Comment

by:cybernietic
ID: 2643615
It's not possible to suppress the margins with netscape 3.  You will alway have a top margin of 15 pixels and a left margin of 10 pixels.

In netscape 4 you can suppress the margin with the tag
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
0
 

Author Comment

by:REMarlow
ID: 2643817
Wow thanks everyone :)
Deathead's suggestion was more damage control than anything, and I didn't want to resort to that if I didn't have to, but cheers anyway.

The marginwidth and marginheight attributes did the trick, cheers Josh (oh and thanks for the explanation cybernietic -  fortunately I'm not really bothered about compatibility with Navigator 3).

And thanks Batalf for suggesting the style sheet commands, I'm using an external style sheet so I'll probably stick those in there and do some experimenting to compare it with the <body> attributes suggested by Josh, although I expect it yields exactly the same results doesn't it?

Thanks again,
Robin
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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.
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 position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Suggested Courses

765 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