title: What is CSS for paper 8.5x11?
body: <p>I want to set css for print html in paper 8.5x11.
   There are two codes.</p>
  
  <pre><code>body {
       width: 7.5in;
       padding: 0.5in;
   }
   table.example {
   width: 90%;
   }
  </code></pre>
  
  <p>Or</p>
  
  <pre><code> &lt;style type="text/css"&gt;
    .page {
     height: 900px;  /* You'll need to play with this value */
     width: 670px;
     page-break-after: always; /* Always insert page break after this element */
    page-break-inside: avoid; /* Please don't break my page content up browser */
     }
  &lt;/style&gt;
  &lt;body&gt;
      &lt;div class="page"&gt;
        &lt;table&gt;
         blah
        &lt;/table&gt;
     &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Which one is right?</p>