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
Solved

Getting rid of default margins

Posted on 1998-08-25
6
150 Views
Last Modified: 2011-08-18
When using tables in FrontPage, the editor always gives you a margin of about 5 to 6mm from the top and left hand side of the page. For the most part this is fine, if not desirable. However I now have a situation where I want the tables to have NO top and LHS margin at all.

Is this possible?

If the above is at all unclear I can post something up on the 'Net to illustrate the problem.
0
Comment
Question by:bigstar
  • 3
  • 3
6 Comments
 
LVL 1

Accepted Solution

by:
dedsi earned 50 total points
ID: 1837046
Hi bigstar,

The following body-tag would do the thing you are looking for:

<body marginwidth="0" leftmargin="0" topmargin="0" marginheight="0">

This works for Netscape Communicator 4.x and IE 4.x and will put all margins to 0.

Hope this is what you were looking for,

/dedsi
0
 

Author Comment

by:bigstar
ID: 1837047
Dedsi - this sounds great - just what I've been looking for. Does it also work in MSIE 3.0 - 3.2. Most of my Intranet audience have this browser, although I'm trying to encourage MSIE 4.0?

Nevertheless I'll report back when I've tried your solution, meanwhile if you are able to test the older MSIE option for me - I'd be much obliged. Thanks
0
 
LVL 1

Expert Comment

by:dedsi
ID: 1837048
hi bigstar,

Im truly sorry, but Im using IE4 myself so I cant use IE3. Though, I dont think this will work for IE3 but as I said I havent tried it. As for Netscape, I have no clue because I only use 4.x.

One thing is sure and that is that it will work in 4.x in both browsers as I use it on my own homepage.

Good luck!

/dedsi
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

 

Author Comment

by:bigstar
ID: 1837049
Dedsi - Yep you're right, it sure does work in IE4 - so many thanks for that. I'm going ahead now and applying this to about 150 pages - lucky me huh?

I think the points are safely yours whether it works in E3+ or not, however I'd like to try it tomorrow at my workplace - just to make sure and return here tomorrow evening - I'm in the UK BTW.
0
 

Author Comment

by:bigstar
ID: 1837050
Dedsi - seems to work fine in MSIE 3.0 - 3.2 also - so I'm a happy man. Big thanks.

BTW - I understand the leftmargin="0" topmargin="0"  part of the argument, but what's the significance of the marginwidth="0" marginheight="0" part. Why is that necessary in addition to the leftmargin="0" etc?

0
 
LVL 1

Expert Comment

by:dedsi
ID: 1837051
Hi bigstar,

leftmargin and topmargin will only work for IE-browsers. To make it work in Netscape Communicator aswell you need to use the marginwidth and marginheight tags. I dont know why Netscape and IE wont agree to one HTML-standard but now they havent so you will have to use both tags if you want it to work in both browsers.

/dedsi
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
Border and image sizing 5 29
Create CSS Animation for Page Transitions 4 38
VBScript on Html 15 47
Javascript Urgent help (Need help to disable event handler) 8 41
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
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 the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

808 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