Created
November 4, 2016 13:21
-
-
Save raiderrobert/573c2888cc24351d503951a9c94b60bc to your computer and use it in GitHub Desktop.
Rsponsive Table
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
@media screen and (max-width: 600px) { | |
table { | |
border: 0; | |
} | |
table thead { | |
display: none; | |
} | |
table tr { | |
margin-bottom: 10px; | |
display: block; | |
border-bottom: 2px solid #ddd; | |
} | |
table td { | |
display: block; | |
text-align: right; | |
font-size: 13px; | |
border-bottom: 1px dotted #ccc; | |
} | |
table td:last-child { | |
border-bottom: 0; | |
} | |
table td:before { | |
content: attr(data-label); | |
float: left; | |
text-transform: uppercase; | |
font-weight: bold; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment