Last active
August 29, 2015 14:00
-
-
Save DenisLeblanc/11264087 to your computer and use it in GitHub Desktop.
Collapse your tables into list items on smaller devices
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
<?php | |
// Collapse your tables into list items on smaller devices. | |
@media only screen and (max-width: 600px) { | |
table { | |
thead {display: none;} | |
td { | |
display: list-item; | |
width: 100%; | |
list-style: none; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment