Click to See Complete Forum and Search --> : Setting PAGE SETUP LANDSCAPE when printing..?


cakeday
07-10-2003, 01:41 PM
When someone click the print button, i want the page to be set to LANDSCAPE automatically without them having to go to page set up..

I am reading thru www.w3.org/..../page.html
and from there, i got the following ideas...

I tried doing the following but nothing seems to work..

<STYLE type="text/css" media="print">
@page { size: 11in 8.5in; }
</STYLE>

AND

<STYLE type="text/css" media="print">
@page { size: landscape; }
</STYLE>

Any suggestions..??

Is there anything, i need to do or say in the <BODY> section?

THank you..

Robert Wellock
07-11-2003, 07:26 AM
You might have a rubbish browser; because if you followed the CSS Recommendations correctly it should have worked and it does work in Mozilla.

Hester
07-11-2003, 09:12 AM
You might have a rubbish browser;

Perhaps he is on IE.:D

cakeday
07-11-2003, 10:19 AM
I am on IE version 6.0+

If you don't mind, can you please give me the code for the same?

THank you!

Robert Wellock
07-18-2003, 06:19 AM
<style type="text/css" media="print">
@page { size: landscape; }
</style>

The above code was correct however; the latest versions of Mozilla seem to have special printing function that can override the CSS print orientation. If you view the page within Opera 7.xx you'll notice the CSS works.