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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print margins

Status
Not open for further replies.

fizzak

MIS
Feb 6, 2003
331
US
Sorry if this is the wrong forum.

Ok this is difficult to explain,
I am using &quot;javascript:window.print()&quot; to enable users of my online product catalog pages easy access to print the pages they are viewing. I would like to insert some kind of code to automatically set the browsers print margins to .25 all around to make sure the page does not cut off. I have followed the instuctions at this informative site. I use the CSS editor in Dreaweaver to set print.css to the <body> at .25 margins. Then I set my IE margins to zero to test it. When I print it just pushes my page off the edge of the paper.

When I set the body of my page to use the print.css script, I can see the margins adjust in the Dreamweaver window. Then I hit F12 to preview and the page is still margined at zero, the way it should be for screen viewing. Am I on the right track? (newb coder at work)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top