title: Jquery - Dynamically resize container DIV width container when another DIV is loaded inside
body: <p>how can I change width with Jquery of a DIV container when another DIV is loaded inside (via PHP)?</p>
  
  <p>This is my HTML code</p>
  
  <pre><code>&lt;div id="container"&gt;
      &lt;div class="item"&gt; Content 1 &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now, I have a to populate dinamically the "container" for each page.
  Another page may have this HTML code</p>
  
  <pre><code>&lt;div id="container"&gt;
       &lt;div class="item"&gt; Content 1 &lt;/div&gt;
       &lt;div class="item"&gt; Content 2 &lt;/div&gt;
       &lt;div class="item"&gt; Content 3 &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>"item" has float:left; 
  I want all "items" in a row. How can I change the "container" width dynamically when a "item" is loaded inside?</p>
  
  <p>I'm using a scrollbar Jquery plugin to scroll divs.</p>
  
  <p>Please, help!</p>