Get width of ul in jQuery
<p>I need to get the width of a <code>&lt;ul&gt;</code> which has a dynamic width, in order to set the width for its enclosing <code>&lt;li&gt;</code>s to the width of the <code>&lt;ul&gt;</code> for IE7.</p>

<p>The <code>&lt;ul&gt;</code> is styled <code>display:block</code>. Currently jQuery's <code>.width()</code> returns <code>0</code>. I tried to get the widest <code>&lt;li&gt;</code>'s width, because it sets the width for the <code>&lt;ul&gt;</code>'s but here, I get <code>0</code>, too?</p>

<p>Is there any way (or workaround) to get the width of the <code>&lt;ul&gt;</code> or its <code>&lt;li&gt;</code>s?</p>

<p>Laura</p>
