title: How to print div in landscape mode in angularjs
body: <p>I have a table with some datas. In my screen its in correct format, but i want on click of print button, it should print the div in landscape mode.</p>
  
  <p><a href="http://jsfiddle.net/rw6q9/6547/" rel="nofollow noreferrer">jsfiddle</a></p>
  
  <p>In this example, if I click print it will print the page exactly what it is. But i want to print in landscape. Can anyone please tell me how to do this?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" type="text/css" href="styles.css"&gt;
  &lt;title&gt;Form&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;center&gt;
  &lt;div id="printable" align="center"&gt;
  &lt;font face="algerian, sans-serif" size="+2"&gt;AROPOLIS INSUARANCE BROKERS LTD. &lt;/font&gt;&lt;br&gt;&lt;font size="-1"&gt;
  2&lt;sup&gt;nd&lt;/sup&gt; Floor, Shamneel Court, Parklands Road, Nairobi, Kenya. &lt;br&gt;
  P.O. Box 1157, Sarit Centre, Post Offive, Nairobi 00606, Kenya. &lt;br&gt;
  Telephones 020 - 4444746 / 7 / 8, Fax 020 - 4444745. Email info@acropolisinsurance.com&lt;/font&gt;
  &lt;/div&gt;
  &lt;/center&gt;
  &lt;p&gt;
    &lt;style&gt;
  body{
    -webkit-print-color-adjust:exact;
  }
  &lt;/style&gt;
    &lt;style type="text/css"&gt;
      #printable { display: none; }
      @media print
      {
          #non-printable { display: none; }
          #printable { display: block; }
      }
      &lt;/style&gt;
      &lt;style&gt;
  .break { page-break-before: always; }
  &lt;/style&gt;
  &lt;style&gt;
  @page {
    size: a4 portrait;
    margin: 0;
    padding: 0;
    margin-top: 20mm;
  }
  &lt;/style&gt;
  &lt;style&gt;
  .rotate {
  /* Safari */
  -webkit-transform: rotate(90deg);
  /* Firefox */
  -moz-transform: rotate(90deg);
  /* IE */
  -ms-transform: rotate(90deg);
  /* Opera */
  -o-transform: rotate(90deg);
  /* Internet Explorer */
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  }
  &lt;/style&gt;
  &lt;/p&gt;
  &lt;center&gt;
  &lt;table width="782"  border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td width="702"&gt;&lt;div align="center"&gt;&lt;strong&gt;CLAIM FORM FOR PROPERTY DAMAGE OR LOSS.&lt;/strong&gt;&lt;/div&gt;
        Applicable to Fire, Special Perils, Home Covers, Theft, All-Risks, Money, Baggage and Glass. The issue of this form is not an admission of liability on the part of the company. All questions must be answered in full.
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td width="468"&gt;&lt;p&gt;Name of Insurer:  
      &lt;/p&gt;&lt;/td&gt;
      &lt;td width="300"&gt;&lt;p&gt;Type of Cover:  
        &lt;/td&gt;
    &lt;/tr&gt;&lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td width="267"&gt;Policy &lt;br/&gt;Number:  &lt;input type="text" class="input" size="30"&gt;&lt;/td&gt;
      &lt;td width="263"&gt;Renewal&lt;br/&gt;date: &lt;br/&gt;&lt;/td&gt;
      &lt;td width="230"&gt;&lt;p&gt;Last premium &lt;br/&gt;
      date paid on: &lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td class="hdr"&gt;&lt;font color="#FFFFFF" style="border-collapse:collapse;"&gt;INSURED&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td&gt;Name: &lt;?php echo $firstname; ?&gt; &lt;?php echo $middlename; ?&gt; &lt;?php echo $lastname; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td&gt;Occupation / Profession: &lt;?php echo $occupation; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td&gt;Address: &lt;?php echo $physadd; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td&gt;Telephone: &lt;?php echo $mobileno; ?&gt;&lt;/td&gt;
      &lt;td&gt;Fax/Email: &lt;?php echo $email; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td class="hdr"&gt;&lt;font color="#FFFFFF" &gt;CIRCUMSTANCES GIVING RISE TO A CLAIM&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td width="267"&gt;Date of &lt;br/&gt;Loss &lt;/td&gt;
      &lt;td width="263"&gt;Time of &lt;br/&gt;Loss &lt;/td&gt;
      &lt;td width="230"&gt;&lt;p&gt;When/Who discovered &lt;br/&gt;the loss or damage 
           &lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td height="1" style="border-collapse:collapse;"&gt;&lt;p&gt;Describe fully how the loss or damage occured
        &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td class="hdr"&gt;&lt;font color="#FFFFFF"&gt;GENERAL INFORMATION&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td&gt;Type of premises involved&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;p&gt;Were the permises unoccupied?
       Yes 
          &lt;input type="checkbox"&gt; 
       |
         No &lt;input type="checkbox"&gt;. if so, when were they last occupied?&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;p&gt;Are the premises self-contained?
       Yes &lt;input type="checkbox"&gt; 
       |
         No &lt;input type="checkbox"&gt;. if not, please list the names of other occupants&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td&gt;Are you the owner of premises? Yes &lt;input type="checkbox"&gt; 
      | No 
      &lt;input type="checkbox"&gt;&lt;/td&gt;
      &lt;td&gt;Are you responsible for repairs? Yes &lt;input type="checkbox"&gt; 
      |
      No &lt;input type="checkbox"&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td height="1"&gt;&lt;p&gt;Have you any suspicion as to parties implicated? Yes
        &lt;input type="checkbox"&gt;
        | No
        &lt;input type="checkbox"&gt;
      &lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td height="1"&gt;&lt;p&gt;Is there any other insurance in force providing covers for this loss? If so, give particulars including insurers name, address, policy numbers, type of policy, etc.&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td height="1"&gt;&lt;p&gt;Have you suffered similar loss or damage in the past? If so, give particulars and whether claim was made on insurers&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="782" border="1" style="border-collapse:collapse;"&gt;
    &lt;tr&gt;
      &lt;td height="1" style="border-collapse:collapse;"&gt;&lt;p&gt;At the time of loss, what was&lt;br/&gt;
          the value of: a) the buildings? _______________________   b) all the property in the premises? _______________________&lt;/p&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;p class="break"&gt;&lt;/p&gt;
  &lt;table border="1" width="782" style="border-collapse:collapse; size: a4 portrait;"&gt;
    &lt;tr&gt;
      &lt;td colspan="3" class="hdr" &gt;&lt;font color="#FFFFFF" &gt;Complete in all cases involving THEFT, MALICIOUS DAMAGE or MISSING ARTICLES&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;When were the Police notified (date &amp;amp; time)?
      &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;Address of the Police Station?&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;what other steps have you taken to recover property?
      &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;Give full details of method of entry to premmises&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;If alarm intalled, did it function properly? If not, give reasons
      &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;Are guards employed? If so, name the firm
      &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;Do other parties i.e. banks have an interest on property lost or damaged? If so, state reasons
        &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3" class="hdr"&gt;&lt;font color="#FFFFFF" &gt;Compete in all cases involving loss in transit&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;Starting point and destination of transit
      &lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;Who was accompanying property lost or damaged?&lt;/p&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;If employees, state names, age and duties&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;&lt;p&gt;Are they insured under Fidelity Guarantee Policy? If so, give insurer's name, address and policy number&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="2"&gt;How often is&lt;br/&gt; this transit made?&lt;/td&gt;
      &lt;td width="543" colspan="1"&gt;What is maximum ever&lt;br/&gt; carried at on time?&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3" class="hdr"&gt;&lt;font color="#FFFFFF" &gt;AMOUNT CLAIMED&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;Kenyan Shilings &lt;br/&gt;
      Amount_________________________________Please refer to the following pages for details&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td colspan="3"&gt;I / we declare that I / wehave not withheld any material information and that all statments made on this form are true to the best of my / our knowledge and belief. And that articles and property described overleaf belong to me / us, and that no other person has any interest whether as owner, mortgagee, trustee or otherwise except as mentioned in the policy.&lt;/p&gt;
      &lt;p&gt;Date____________________  Signature_____________________________________________&lt;/td&gt;
    &lt;/tr&gt;
      &lt;td colspan="3"&gt; &lt;div align="right"&gt;(If policy Holder body corporate, title of person signing &amp; Company Stamp)&lt;/div&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;p class="break"&gt;&lt;/p&gt;
  
  
  &lt;/center&gt;
  &lt;div id="non-printable" align="center"&gt;
  &lt;a href="logout.php"&gt;logout&lt;/a&gt; | &lt;a class="newww" href= "javascript:window.print();"&gt;Print&lt;/a&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>