Tuesday, December 18, 2012

How to set width of a table within Twitter Bootstrap

All tables within the bootstrap stretch according to their container, which you can easily do by placing your table inside a .span* grid element of your choice. If you wish to remove this property you can create your own table class and simply add it to the table you want to expand with the content within:
.table-nonfluid {
   width: auto;

Taken from: stackoverflow answers.

No comments:

Post a Comment