Solved

Setting page margins

Posted on 1998-07-15
2
189 Views
Last Modified: 2010-04-09
I need to be able to set the page margins and header on an HTML page. I haven't done much HTML for a while, but I think I remember that there were a couple of tags to do this, albeit maybe only in IE4. Please don't tell me to use tables and set the borders that way, I'm convinced there are tags to do what I want. Many thanks in advance.
0
Comment
Question by:dgb001
[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 Comments
 
LVL 1

Accepted Solution

by:
TAMC earned 20 total points
ID: 1844626
in the body tag do something like this and as far as I know it does only work in IE, don't know which version started supporting it but I dont't think it works in NN or NC.

<BODY TOPMARGIN=0 LEFTMARGIN=0>

obviously replacing the 0 with the number of pixels you choose to have as a margin.
0
 
LVL 1

Author Comment

by:dgb001
ID: 1844627
Many thanks TAMC. I haven't tried it yet, but those tags do indeed ring bells, so I'll take your word for it and try it later.

0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

738 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