set the width dynamically of element which create dynamically
<p>I create one div#sresult_container dynamically and append no of div to that div. and all appended div have different text. so i can retrieve the width of div#sresult_container but i try to that increase the width of  div#sresult_container 10px before it display on the view port. how can i do this plese help me?
my code is below:</p>

<pre><code>var $sresult_container = $('&lt;div id="sresult_container"&gt;&lt;/div&gt;');
</code></pre>

<p>AND after that i append the some divs as children of div#sresult_container.</p>

<p>and append to body.</p>

<pre><code>$('body').append($sresult_container);
var Setwidth  = $('#sresult_container').outerWidth() + 10;
$('#sresult_container').css('width',Setwidth + 'px');
</code></pre>

<p>so here first load original width after that load the modified width. so how can do directly load the modified width.  </p>
