We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

localhorst on 07/04/08


Tagged

css ie print landscape


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

SpinZ


Force Specific Content to Print in Landscape Orientation


Published in: CSS 


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

This handy trick works in IE5.5/Win and newer. It assumes that the default printer orientation is portrait.

  1. <style type="text/css" media="print">
  2. div.page {
  3. writing-mode: tb-rl;
  4. height: 80%;
  5. margin: 10% 0%;
  6. }
  7. </style>

Report this snippet 

You need to login to post a comment.