I'm trying to set a dynamic width to ul.sections by checking how many li's exist and multiply that by the width of the li ($("ul.sections").width()), which in this case happens to be 910px.
I'm not sure how to return the current number of visible list items. Maybe something like this?
$('ul.sections').width($("ul.sections li").length() * $("ul.sections li").width());
Which obviously doesn't work yet. Any ideas?