Edited: This has changed from Bootstrap 3. See the solution for Bootstrap 3 below.
Does div extract from question?
Have a look at this example: http://jsfiddle.net/EVmwe/4/
The important part of the code:
.btn-group-wrap { text-align: center; } div.btn-group { margin: 0 auto; text-align: center; width: inherit; display: inline-block; } a { float: left; }
Wrap a group of buttons within a division and set the div to the center of the text alignment. The button group must also be overwritten to display the built-in block and inherited width.
Rewriting the mapping of bindings to the inline block and float: none would also probably work as @Andres Ilich said.
Update for Bootstrap 3
As in Bootstrap 3, you have alignment classes (as shown in the documentation ). Now you just need to add the text-center class to the parent. For example:
<div class="text-center"> <ul class="pagination"> <li class="disabled"><a href="#">«</a></li> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">»</a></li> </ul> </div>
See a working example here: http://jsfiddle.net/EVmwe/409/
mikaelb Mar 24 '12 at 17:33 2012-03-24 17:33
source share