budimir Posted October 11, 2008 Share Posted October 11, 2008 Hey guys, I can't work it out, so my page gets printed in landscape. I'm using this peace of code: @page { size: landscape; } Web browser is Firefox 3. I can't see what is wrong!!! Help! Quote Link to comment https://forums.phpfreaks.com/topic/128020-solved-print-in-landscape/ Share on other sites More sharing options...
dropfaith Posted October 11, 2008 Share Posted October 11, 2008 try this? <style type="text/css" media="print"> @page { size: landscape; margin: 2cm; } </style> Quote Link to comment https://forums.phpfreaks.com/topic/128020-solved-print-in-landscape/#findComment-662909 Share on other sites More sharing options...
budimir Posted October 11, 2008 Author Share Posted October 11, 2008 No, nothing is happening! I don't see why. Should I use: <div class="page"> And put everything inside that div element??? No, div element didn't help!! Quote Link to comment https://forums.phpfreaks.com/topic/128020-solved-print-in-landscape/#findComment-662913 Share on other sites More sharing options...
AndyB Posted October 11, 2008 Share Posted October 11, 2008 It looks as though you might get lucky with Opera, otherwise you'll need to wait for CSS3 support. http://archivist.incutio.com/viewlist/css-discuss/42166 update: http://www.westciv.com/style_master/academy/css_tutorial/advanced/printing.html CSS2 help Quote Link to comment https://forums.phpfreaks.com/topic/128020-solved-print-in-landscape/#findComment-663046 Share on other sites More sharing options...
budimir Posted October 12, 2008 Author Share Posted October 12, 2008 Thanks a lot guys! I'm waiting for CSS3, until then I will print in Portrait with some adjustments. Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/128020-solved-print-in-landscape/#findComment-663233 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.