I have a table that I would like the width to be span5 and make it center horizontally.
How can I do this with Twitter Bootstrap 2?
Create a new style -
.center-table
{
margin: 0 auto !important;
float: none !important;
}
and apply it to the table -
<table class="span5 center-table">
<tr>
<td>This is a centered table</td>
</tr>
</table>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With