title: Address label print using HTML and CSS
body: <p>I want to print address labels on a address label sheet of 105*48.</p>
  
  <p>I am not able to fit my content properly in those label boxes.Based on browser and printer setting content is getting printed differently. My End goal is to achieve something like below and this should look the same on print as well. Note no margins.</p>
  
  <p><a href="https://i.stack.imgur.com/WBXmz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WBXmz.png" alt="address label"></a></p>
  
  <p>Can you please suggest top best approach to achieve a uniform print of these labels across browsers.</p>
  
  <p>Can we achieve this using simple HTML and CSS.</p>
  
  <p>[EDIT]</p>
  
  <p>Adding sample code ..</p>
  
  <pre><code>    &lt;html&gt;
      &lt;head&gt;
      &lt;style&gt;
          body {
          margin: 0;
          padding: 0;
      }        }
      * {
      box-sizing: border-box;
      -moz-box-sizing: border-box;
  }
  .page {
      width: 21cm;
      min-height: 29.7cm;
      padding: 0cm;
      margin: auto;
      background: white;
      }
  
  .box {
          display:block;
          box-sizing: border-box;
          width:95mm;
          height:48mm;
          float:left;
          text-align: left;
          vertical-align: top;
          border: 1px solid red;
          Padding:5mm;
      }
  
  @page {
      size: A4;
      margin: 4mm 0 4mm 0 ;
  }
  @media print {
      .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;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="page"&gt;
          &lt;div class="box"&gt;&lt;h2&gt;Mr. TEST&lt;/h2&gt;&lt;p&gt;how are you&lt;/p&gt;&lt;/div&gt;
          &lt;div class="box"&gt;&lt;h2&gt;Mr. TEST&lt;/h2&gt;&lt;p&gt;how are you&lt;/p&gt;&lt;/div&gt;      
  &lt;/div&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>