Fuselage elegantly handles tables across all device size, and here is how to do it.
Building Responsive Tables
Javascript-free responsive tables are built into Fuselage, and are easy to use. Simply add small-responsive, medium-responsive, large-responsive, xlarge-responsive, or responsive classes to your tables. Your table will be in the responsive view until you hit the media size specified (mobile first). Use the responsive class to only use the responsive view across all media sizes (there is no xxlarge-responsive class). It is important to include data-th attribute in order to have each field labelled correctly in the responsive view.
Output
This is a caption for the table
Vegetable
Color
Popularity
Description
Tomato
Red
9
Consectetur adipiscing elit. Aenean a lectus dui. Sed posuere elit sem, at eleifend massa dignissim nec.
Summer Squash
Yellow
6
Aenean a lectus dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pumpkin
Orange
5
Sed posuere elit sem, at
eleifend massa dignissim nec.
Zucchini
Green
7
Lorem ipsum dolor sit amet, at
eleifend massa dignissim nec.
Eggplant
Purple
2
Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Aenean a lectus dui.