setting page margins

hi everyone.

In MS Word, you can set top, left, right, and bottom margins at 0.7

How can I set this in my html page, with using css or directly into the table?

Thanks much
LVL 29
sammySeltzerAsked:
Who is Participating?
 
uncle_hoCommented:
Didn't realize you were exporting this to Word -- I don't really have any experience with that type of thing.  You can try the leftmargin and topmargin (IE), and marginheight and marginwidth (Netscape) attributes in the body tag itself, but I kind of doubt it would give you better results.

eg. <body leftmargin=0 topmargin-0 marginwidth=0 marginheight=0>
0
 
uncle_hoCommented:
In CSS, you can use the following:

body { margin: 0px 0px 0px 0px; }

Corresponds to top, right, bottom, left margins.  You can specify pixels, percent, "auto", etc.

Alternatively, you can specify a particular margin with margin-top, margin-left, and so on.
0
 
sammySeltzerAuthor Commented:
Thanks for the response.

So with this:
body { margin: 0px 0px 0px 0px; }

you invoke by just using:

<body> ??
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
uncle_hoCommented:
you got it
0
 
sammySeltzerAuthor Commented:
Thanks very much.

It works as far as web page but once the content the page is exported to word document, all bets are off - doesn't set the margin as was specified on the web page.
0
 
sammySeltzerAuthor Commented:
thanks much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.