Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Margins????

Status
Not open for further replies.

zishan619

Programmer
May 28, 2003
284
MX
Hi I have a report that prints out on Legal paper but I need the margins to be top, bottom, left, right .18"....I know I can go to page setup but this report is for many users to print out and discuss upon the report in meetings. Is there a code for the margins and landscape view and legal paper in HTML or CSS?
Thanks Z
 
You could use the css media tags;-

<style>
@media screen
{
p.test {
font-family:verdana,sans-serif;
font-size:14px
margin:5px;
}
}

@media print
{
p.test {
font-family:times,serif;
font-size:10px
margin:15px;
}
}


That way you only need to work out the pixel distances for the print page (and i think you will have to put in the margin stuff manually having measured a legal sized page).

The CSS stuff above came directly from



hope this helps

Jez
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top