• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

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
0
sammySeltzer
Asked:
sammySeltzer
  • 3
  • 3
1 Solution
 
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
 
uncle_hoCommented:
you got it
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
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
 
sammySeltzerAuthor Commented:
thanks much
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now