title: About Print a4 size using css
body: <p>I want to print a page as A4 size. I use these code but it has a problem, it show different size in different resolution device. I want to print my page as a4 size using all device. I need solution for responsive a4 size print</p>
  
  <pre><code>&lt;div class="page"&gt;hmmm&lt;div&gt;
   &lt;style&gt;
  .page {
      height:1600px;
  }
  
  @page {
      size: A4;
      margin: 0;
  }
  @media print {
      html, body {
          width: 210mm;
          height: 297mm;        
      }
      .page {
          margin: 0;
          border: initial;
          border-radius: initial;
          width: initial;
          min-height: initial;
          box-shadow: initial;
          background: initial;
          page-break-after: always;
       }
      }
      &lt;/style&gt;
  </code></pre>