Force Specific Content to Print in Landscape Orientation

/ Published in: CSS
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. <style type="text/css" media="print">
  2. {
  3. writing-mode: tb-rl;
  4. height: 80%;
  5. margin: 10% 0%;
  6. }
  7. </style>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.