Skip to content

Instantly share code, notes, and snippets.

@ace-subido
Last active August 29, 2015 13:57
Show Gist options
  • Save ace-subido/9913564 to your computer and use it in GitHub Desktop.
Save ace-subido/9913564 to your computer and use it in GitHub Desktop.
Responsive Table
$phone-portrait: 320px;
@media screen and (max-width: $phone-portrait) {
table, thead, tbody, th, td, tr {
display: block;
width: 100%;
}
// Hide table headers
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
td {
border: none;
float: left;
position: relative;
width: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment