joecool2005 Posted May 30, 2006 Share Posted May 30, 2006 Hi,I define print page like this:<style>.print{size:landscape}</style>If I want to print all the page in landscape where can I insert my ".print"?Thx Link to comment Share on other sites More sharing options...
aspnetguy Posted May 30, 2006 Share Posted May 30, 2006 have you tried this??? <body class="print"> or body{ size:landscape} Link to comment Share on other sites More sharing options...
joecool2005 Posted May 30, 2006 Author Share Posted May 30, 2006 Yes I did.The "print preview" is still in portrait on explorer. Link to comment Share on other sites More sharing options...
aspnetguy Posted May 30, 2006 Share Posted May 30, 2006 Yes I did.The "print preview" is still in portrait on explorer.<{POST_SNAPBACK}> does that mean it works in FF and others tho??? Are you sure IE suports the size attribute???I am shooting in the dark here. I do very little 'print view' pages. Link to comment Share on other sites More sharing options...
joecool2005 Posted May 30, 2006 Author Share Posted May 30, 2006 Well, I guess it supports the attribute.I went to this page for the attributehttp://www.w3schools.com/css/css_ref_print.asp Link to comment Share on other sites More sharing options...
aspnetguy Posted May 30, 2006 Share Posted May 30, 2006 Well, I guess it supports the attribute.I went to this page for the attributehttp://www.w3schools.com/css/css_ref_print.asp<{POST_SNAPBACK}> That page gives you everything from the CSS2 specification. IE does not fully support CSS2. Link to comment Share on other sites More sharing options...
scott100 Posted May 30, 2006 Share Posted May 30, 2006 I realy don't think this is possible yet, i have been searching and trying all day and nothing works The @page rule and forcing Landscape orientation The @page rule has reportedly been implemented only in Opera. My own testing of Opera (O7.53) shows that support is too buggy to be of any use, and that IE (IE6), Mozilla (Moz1.7.1) and Firefox (FF0.10=Gecko 1.7.3) don't support @page at all. According to the [CSS2 spec section 13.2.2] it is possible to override the user's setting of orientation and (for example) force printing in Landscape but the relevant "size" property has been dropped from [CSS2.1], consistent with the fact that no current browser supports it. It has been reinstated in the [CSS3 Paged Media] module but note that this is only a Candidate Recommendation (as at February 2005). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now