Expand div vertically with AP div contents
<p>I want to be able to use JQuery code to alter some pages produced with AP divs by another application so that an outer container div grows vertically with the inner div(s) which are AP divs. A simple generic example is shown.  </p>

<pre><code>&lt;body&gt;
&lt;div id="wrapper" style="border:1px solid black;height:400px;width:200px;" &gt;
&lt;div id="txt" style="position:absolute;top:100px;left:100px;background-color:red;width:100px;border:1px;"&gt;
&lt;/div&gt;  
&lt;/div&gt;  
</code></pre>

<p>The #wrapper is essentially a pseudo page background div which originally has fixed dimensions in the app with possibly different back color to the body. I will be say adding content to #txt dynamically and I want #wrapper to enlarge to 'cover' the new div contents inside. Hope I have explained it well enough.  </p>

<p>Is this possible in an automatic fashion or do I have to do some sums for all the inner divs and then alter the height of the containing div #wrapper accordingly. Need to retain absolute positions.<br>
Thanks<br>
John B  </p>

<p>Sorry! didn't put a height setting in #wrapper - added in height:400px.</p>
