I am trying to sort out a problem I have with my CSS script for controling the printout.

Some text which is generated from a MySQL database, neesd to be printed in a particular place on the paper, this I have controled using CSS. I have two problems:
1) It does not always printout in the right size font. (The font face is always correct).

2) I have tried to control the page orientation using @page but that does not work.

There are no such things as pixels when you print something. Possibly you meant to print it using 22pt rather than using the meaningless 22px.

rockyhudson

01-23-2012, 10:22 PM

Thanks Stephen!

So simple I overlooked it!

Any ideas on the orientation problem?

RockyHudson

felgall

01-24-2012, 08:53 PM

I haven't come across anywhere that indicates that either @page port or [b}@page land[/b] are valid. The only values I know you can put before the { in a @page statement are :first :left and :right - see http://www.w3.org/TR/CSS2/page.html#page-selectors