Im trying to count using different list items
my HTML:
<ul>
<li style="disply:block; float:left">Some Text</li>
<li style="disply:block; float:left">Some More Text</li>
<li style="disply:block; float:left">Some Other Text</li>
</ul>
Im usind standard with function
var width = $('li').outerWidth()
But this computes the same width for each tag based on the first.
How can I get a different width? What in the end would I want to have a div after cast width li before ... if that makes a feel?
<ul>
<li style="disply:block; float:left">Some Text</li>
<div style="width" />
<li style="disply:block; float:left">Some More Text</li>
<div style="width" />
<li style="disply:block; float:left">Some Other Text</li>
<div style="width" />
</ul>
Thanks so much for your help in advance.
source
share