title: Why is the absolute positioned DIV not inheriting the width of parent?
body: <p>Why is the absolute positioned DIV not inheriting the width of its parent? Div has  </p>
  
  <pre><code>div {
    position: absolute;
    top:100px;
  }
  
  &lt;html&gt;
  &lt;body&gt;
    &lt;div&gt;This DIV&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In static positioning the DIV takes all available space, in absolute the width of the DIV is as long as the length of its contents. </p>