Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Change print layout to landscape For IE7 & Firefox aspdaddy msg:3466751 8:01 am on Oct 2, 2007 (gmt 0) Hi, this code works fine on IE5&6 does anyone know how to achieve the same on IE7 & Firefox?
lavazza msg:3466801 9:22 am on Oct 2, 2007 (gmt 0)
[ ...] w3.org [ ...] meyerweb.com
In the <head>:
------------- <link rel="stylesheet" type="text/css" media="print" href="myCssFolder/myPrintFile.css">
size: landscape; }
aspdaddy msg:3466870 11:09 am on Oct 2, 2007 (gmt 0)
That doesnt work in IE6,7 or Firefox.
Weve done some research on the various approaches, & the code I posted is the best way found to change the print orientation to landscape & set the margins. The only problem is it doesnt work on IE7 & Firefox :(
Trace msg:3466957 1:05 pm on Oct 2, 2007 (gmt 0)
I would be very worried if a web page could change the default settings of my browser like that.
aspdaddy msg:3467056 2:31 pm on Oct 2, 2007 (gmt 0)
Hi Tried that also, the transform / rotate doesnt work well with small text in table cells,some of it is unreadable. Robin_reala msg:3467193 4:57 pm on Oct 2, 2007 (gmt 0)
I've had a look around at the various CSS3 printing specs and setting to landscape seems to be restricted to an entire document, not individual pages. Even then, browser support is going to be minimal at best, If you want fine-grained print support then you probably want to consider exporting to PDF on the backend and adding that to the page as a 'printable version'.