title: Top bottom padding in case of absolute positioning
body: <p>Why is it so when a paragraph is position absolutely the top bottom padding increases than the original? how to set it to the initial one? Thank you </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
   pos { 
      position:absolute;
      width:300px;            
      background-color:red;
      color:yellow;
      }
  &lt;/[![enter image description here][1]][1]script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;h3&gt; practice page &lt;/h3&gt;
  
      &lt;div class="pos"&gt; &lt;p&gt; paragraph tage &lt;/p&gt; &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/qNhlu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qNhlu.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/bKbdu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bKbdu.png" alt="enter image description here"></a></p>