Last active
December 16, 2015 02:39
-
-
Save camallen/5364140 to your computer and use it in GitHub Desktop.
CSS - Responsive tables using media queries for small viewports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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