title: Make <div> scale to content when absolutely positioned?
body: <p>Usually a <code>&lt;div&gt;</code> will expand to fill content insize.</p>
  
  <pre><code>&lt;div&gt;
    &lt;p&gt;Hello&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The <code>&lt;div&gt;</code> scales to contain the <code>&lt;p&gt;</code></p>
  
  <p>Is it possible to make the <code>&lt;div&gt;</code> do this when it's absolutely positioned?</p>
  
  <p>In my case I have a modal which has a set height and width, but I want to make it scale to the content.</p>