Total width of parent according to number of children
<p>I want to add dynamic width in UL according to the its child. Any idea how to do this using jQuery or Javascript?</p>

<pre><code>&lt;ul style="width:?"&gt;
 &lt;li style="width:50px;float:left;"&gt;&amp;nbps;&lt;/li&gt;
 &lt;li style="width:50px;float:left;"&gt;&amp;nbps;&lt;/li&gt;
 &lt;li style="width:50px;float:left;"&gt;&amp;nbps;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>
