Is there a way to calculate the Total LI width and then set the width for the parent div?
Here is an example of my code:
<ul>
<li>dsfdsfdsfds</li>
<li>dsfdsfdsfds</li>
<li>dsfdsfdsfds</li>
<li>dsfdsfdsfds</li>
<li>dsfdsfdsfds</li>
<li>dsfdsfdsfds</li>
</ul>
This is the CSS style I am using:
ul li{width:400px;float:left;}