<div class="container">
<div class="row">
<div class="span6 center">
<form>
<table>
<tbody>
<td>foo</td>
</tbody>
</table>
</form>
</div>
</div>
</div>
Note: I am using an abstracted layer so am unable to change the class of <form>.
How do I get the form centred using Twitter-Bootstrap?
FYI: I have also tried with pagination-centred.
Both answers posted are valid and work so I upvoted them. Here is another method i did not see posted.
You can center your form by setting it to
display:inline-blockand center it within the.centercontainer usingtext-align:center. This way the form will center regardless of width within that container:CSS