When a table's width exceed the span's width, like this page: http://jsfiddle.net/rcHdC/
You will see the table's content is outside of the span
.
What would be the best method to cater this case?
With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.
<code>. table-borderless</code> class for a table without borders.
To create a responsive table with Bootstrap, use the table-responsive class.
Bootstrap 3 now has Responsive tables out of the box. Hooray! :)
You can check it here: https://getbootstrap.com/docs/3.3/css/#tables-responsive
Add a <div class="table-responsive">
surrounding your table and you should be good to go:
<div class="table-responsive"> <table class="table"> ... </table> </div>
To make it work on all layouts you can do this:
.table-responsive { overflow-x: auto; }
One option that is available is fooTable. Works great on a Responsive website and allows you to set multiple breakpoints... fooTable Link
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