title: Print in Landscape format
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/138422/landscape-printing-from-html">Landscape printing from HTML</a>  </p>
  </blockquote>
  
  
  
  <p>I am using below code to show print window on button click:</p>
  
  <pre><code>function print_onclick() {
      window.print();
      return false;
  }
  </code></pre>
  
  <p>I want the page to be printed in Landscape format. Is there any property I can add in above code to make it work ?</p>
  
  <p>Additional Info:
  Since my page width is 1280 px, when I print it on A4 paper with portrait orientation, the font becomes too small.
  I want to print only 2 lines. If not landscape, is there a way I can fix the font size of those table cell/divs while printing ?</p>