title: HTML <div> height not expanding with dynamic content
body: <p>I am having problem with populating an HTML div with dynamic content. When dynamic data loads inside the div, its height is not expanding to fit the content. 
  The jquery code for dynamic content is:</p>
  
  <pre><code>$('.width_3_quarter').append('&lt;h2&gt;Selected Groups&lt;/h2&gt;');
                              for(var i=0; i&lt;userGroups.length; i++)
                              {   
                                  var div=$('&lt;div id="data"'+i+' style="display:block;"&gt;'+userGroups[i]+'&lt;/div&gt; ');
                                  $('.width_3_quarter').append(div);
                              }
  
                              var selCat=$('&lt;div id="selectedCat"&gt;&lt;span style="font-weight:bold; text-decoration:underline;"&gt;Groups Selected &lt;/span&gt;&lt;/div&gt;');
                              var label=$('&lt;label style="margin-top:-1px; margin-bottom:0px;position:absolute;font-weight:bold;text-decoration:underline;"&gt;Available Groups &lt;/label&gt;');
  
                              var selectedData=$('&lt;div id="myData"&gt;&lt;/div&gt;');
  
                              var select=$('&lt;select id="grpSelect" name="grpSelect" multiple="multiple"&gt; &lt;/select&gt;');
                              for(var i=0;i&lt;listGroups.length; i++)
                              {
                                  var option=$('&lt;option value="'+listGroups[i]+'"&gt;'+listGroups[i]+'&lt;/option&gt;');
                                  select.append(option);
                              }
  
  
                              var button=$('&lt;input type="button" value="submit" id="valSubmit" onclick="addGrp();"/&gt;');
  
                      selCat.append(selectedData);
                  $('.width_3_quarter').append(label);
                  selCat.prepend(button);
                  $('.width_3_quarter').append(select);
                  $('.width_3_quarter').append(selCat);
  </code></pre>
  
  <p>Here, the data is getting loaded from a static array with string values.</p>
  
  <p>The html div is as:</p>
  
  <pre><code>&lt;div class="module width_3_quarter" style="clear:both;"&gt;
  </code></pre>
  
  <p>When I put static data inside the div, it is expanding to fit the size of the content. However, its not the case with dynamic data.
  The CSS is:</p>
  
  <pre><code>.width_3_quarter {
  width: 73%;
      margin-right: 0;
      min-height: 462px;
      font-weight: normal;
      display: inline-block;
      text-indent: 20px;
      overflow: hidden;
      color: #1F1F20;
      text-transform: uppercase;
      text-shadow: 0 1px 0 #fff;
      line-height: 36px;
      font-size: 18px;
  
  
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ZWSi0.png" alt="Screen shot for the div"></p>
  
  <p>How can I control my div's height to fit the size of the dynamic content?</p>