This is a jQuery solution for responsive tables to be used in WordPress. Originally posted on http://zurb.com/playground/projects/responsive-tables/index.html.
The following files are required in order for this responsive tables solution to function correctly.
This is the original javascript file from Zurb.
This javascript file will add a class called "responsive" to the
element.Styles needed for responsive tables. Colors, width, heights, and other options can be edited to match the overall design of the site this is being used on.
This is a standard script enqueue for WordPress. Both responsive-tables.js and table-class.js must be enqueued. In the sample above, the scripts are only being enqueued on single blog posts and pages. This can be edited to load conditionally or to load on the entire site.