Center table with Twitter Bootstrap 2

Center table with Twitter Bootstrap 2

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?

Solutions/Answers:

Solution 1:

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>

References

Related:  Bootstrap: pull left and right in panel footer breaks footer