title: How to "clear" absolutely positioned elements
body: <p>Okay, I know that 1) this is probably not possible with CSS alone and that 2) it really shouldn't be possible.<br>
  Unfortunately, I need to find a way to make it possible due to some requirements from the user.</p>
  
  <p>Okay, so some greatly simplified markup:  </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div&gt;&lt;!--There's content in here --&gt;&lt;/div&gt;
  &lt;div id="wrapper"&gt;
  &lt;div style="position: absolute;"&gt;Stuff1&lt;/div&gt;
  &lt;div style="position: absolute;"&gt;Stuff2&lt;/div&gt;
  &lt;div style="position: absolute;"&gt;Stuff3&lt;/div&gt;
  &lt;div style="position: absolute;"&gt;Stuff4&lt;/div&gt;
  &lt;/div&gt;
  &lt;div&gt;&lt;!--There's content in here --&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>It's the divs within #wrapper that I need to clear.  Assume they all have top&amp;left positions.</p>
  
  <p>The major obstacle here is that the divs within wrapper are movable.  Not only that, but more inner divs can also be added or removed and positioned anywhere.</p>
  
  <p>I was thinking that this may be possible with jQuery... Somehow finding the lowest point within that div and setting the div height to match.  I'm working on doing it this way, but am not sure where to start.</p>
  
  <p>Anyone have any ideas?</p>
  
  <p><strong>Solution based on Torgamus' suggested javascript</strong></p>
  
  <pre><code>var maxHeight = 0;
  $('#wrapper div').each(function () {
      var tmpHeight = $(this).height() + $(this).position().top;
  
      if (tmpHeight &gt; maxHeight) {
          maxHeight = tmpHeight;
          $('#wrapper').height(maxHeight);
      }
  });
  </code></pre>