I am dealing with a dynamic list that contains around 50 elements, but the exact number may vary.
<div style="width:465px;">
<ul>
<li>aaa</li>
<li>aaa</li>
<li>aaa</li>
<li>aaa</li>
....
<li>aaa</li>
</ul>
</div>
The ul element has "overflow: hidden" applied in the CSS. I am attempting to retrieve the width of the ul using jQuery. When I use the width() method on the ul element in Internet Explorer 7, I get a value of 465. However, when I try it in other modern browsers, I get a larger value like 1549. Which one is correct? Any suggestions on how to handle this discrepancy?