Skip to content

Instantly share code, notes, and snippets.

@camallen
Last active December 16, 2015 02:39
Show Gist options
  • Save camallen/5364140 to your computer and use it in GitHub Desktop.
Save camallen/5364140 to your computer and use it in GitHub Desktop.
CSS - Responsive tables using media queries for small viewports
/*
* CSS Media queries for responsive tables
* http://stackoverflow.com/questions/9746979/tables-in-a-responsive-web-design
* and http://css-tricks.com/responsive-data-tables/
*
* http://jsfiddle.net/camallen/gvExW/5/
/*
@media all and (max-width:640px) {
table,thead,tbody,tfoot,th,td,tr{display:block}
tr+tr{margin-top:1em}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment