I am building a solution that includes printing an invoice out of the web browser. I am willing to live with a few browser quarks.
I would like to make my content center in the printed page instead of on the left side as the browser is wanting to do. I have tried setting right and left margins to auto but to no avail. I have also tried googling around but based on the very little I was able to find, I’m fearing that it won’t be possible.
Use a printing style sheet:
Note the
media="print".In
print.css, you can add margins and centering and whatnot.