title: Fieldset not resizing when inner content is resized
body: <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
   &lt;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt;
   &lt;style type="text/css"&gt;
          .box
          {
              background-color:Gray;
              width:300px;
              height:400px;
              position:relative;
              padding-top : 50px;
              padding-bottom : 50px;
              padding-left : 50px;
              padding-right : 50px;
          }
  
          fieldset
          {
              border-color : Red;
              width : 50% !important;
              padding-top : 50px;
              padding-bottom : 50px;
              padding-left : 50px;
              padding-right : 50px;
          }
   &lt;/style&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $("#resizable").resizable();
      });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;fieldset id="fdemo"&gt;
  &lt;div id="resizable" style="width: 100px; height: 100px;" class='box'&gt;&lt;/div&gt;
  &lt;/fieldset&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Attached above is the html code with a fieldset and a resizable div within the fieldset.</p>
  
  <p>My user can resize the div to any width he wishes. In my real application I have other elements that resize. So this is just a relating demo.
  In case my user resizes a control (in this case the div within the fieldset) to a width greater than the width of the fieldset, the width of the fieldset should increase so that the div is contained within the bounds of the fieldset.</p>
  
  <p>When you execute the above code and put IE8 or IE9 in quirks mode, you will notice that the desired behaviour is achieved, the fieldset's width increases and the div is contained within the fieldset.</p>
  
  <p>However when the document goes into standard mode(i.e. IE8 standard mode or IE9 standard mode), resizing of the div does not resize the fieldset. The fieldset stays as it is and the div moves over and out of the fieldset.</p>
  
  <p>I am unable to understand why this is occuring and am not aware of availablity or unavailability of any property that could cause this issue to occur.</p>
  
  <p>I need a solution that would allow the above to work on IE7, IE8 and IE9.
  I understand that this is most probably a css related issue, so I would like a css solution that could be globally applied.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks in Advance. </p>