Setting the width of a pagination depending on how many child elements
<p>I am trying to set the width of a pagination depending on how many child elements are available.</p>

<p>The reasoning for this, is because I want to centralise it within a parent div element.</p>

<p>At the moment, I've resorted to trying to find the outerWidth of the UL element and setting the css to mirror this, but that still wont work.</p>

<p>Any ideas?</p>

<p><a href="http://jsbin.com/ezaqax/edit#javascript,html" rel="nofollow">http://jsbin.com/ezaqax/edit#javascript,html</a></p>
