Credits for the styling goes to Matt Smith pen
<div class="has-responsive-table">
<table>
...
</table>
</div>
$('.has-responsive-table').simpleResponsiveTable();
{
table: 'table', // the table element, can be a css selector or an element
stripStyleAttribute: true, // helpful when the table comes from an editor like tinymce
labelAttribute: 'data-label', // the attribute used in css styles on small devices
fillBlankCells: '' // set this content to blank cells in order to maintain paddings
}
// include the .scss file into your main scss and use it as follows with a breakpoint parameter (optional)
@include responsive-table(768px)