Print Stylesheet Control

Trying to offer a media=print stylesheet to print a page with a big, 100% width table on it but can't seem to control the margins on the printed page. Is that doable?

I want to reduce the printed page margins to let the table have all the space it can and so not wrap some of the content but nothing I am doing is influencing them.The following CSS should control that:

@page { margin: #<unit>; }Tried that;
<style>@page {margin: 1cm}</style>

Didn't do diddlyare you sure your printer will even support 1cm margings? thats really small[sheepish]
Ahem, well, er no, actually. I just kinda assumed that the printers/browsers of this world would bow to the power of css.

Maybe in a parallel universe....I don't know if that's the problem in this case, but my personal printer can't go below a 1/4inThe @page feature may not be supported by your browser. Which browser are you using?It's intended for an intranet and I'm reliably informed that the base spec is IE 5.

If it can't be done, well, it can't be done and there's no harm done.IE5!?! Ouch.Originally posted by pyro
IE5!?! Ouch. I don't think you even needed to put the "5" there&hellip; ;)Should we be saying @page or @print?

You should also use pt sizing when printing.
 
Back
Top