0

I have used the css to print the page orientation to landscape. But it is not giving the desired result. the code I have used,

<style type="text/css" media="print">
.land{filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}
</style>

Please suggest me to print to lanscape. I am using php and javascript.

Regards,
maza

2
Contributors
1
Reply
3
Views
9 Years
Discussion Span
Last Post by chrelad
0

Hi avmaza,

It appears you've stumbled onto Microsoft's proprietary filters. This is fine for Internet Explorer browsers, but anything else is going to choke on this CSS rule and spit out the results in the normal orientation.

Here is an interesting way to do it... Works at least in IE 6.0, not in Firefox:

http://home.tampabay.rr.com/bmerkey/examples/landscape-test.html

This is another discussion about trying to get as many browsers to work as possible (hint: you may consider using the aforementioned link's information instead of this link's ActiveX approach for IE):

http://edacio.us/forum/comments.php?DiscussionID=39

Hope you can get something out of these links... If not, try:

http://www.google.com/search?hl=en&q=landscape%2Bcss&btnG=Search

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.