I have a pagination and want to center it: http://jsfiddle.net/6819rhLf/
<ul class="slidesjs-pagination">
<li class="slidesjs-pagination-item">
<a href="#" data-slidesjs-item="0" class="active">1</a>
</li>
<li class="slidesjs-pagination-item">
<a href="#" data-slidesjs-item="1">2</a>
</li>
<li class="slidesjs-pagination-item">
<a href="#" data-slidesjs-item="2">3</a>
</li>
</ul>
margin-left auto; margin-right: auto;
on slidesjs-pagination
only works when slidesjs-pagination
got a fixed width. But I can't tell how much items there will be, so fixed width will not do it for me.
The code is generated with JS, so I would like to have a solution where I don't need a parent div if that is possible.