Skip to content

Instantly share code, notes, and snippets.

@dingyi
Forked from chriseppstein/responsive_table.scss
Created December 15, 2012 09:18
Show Gist options
  • Save dingyi/4292319 to your computer and use it in GitHub Desktop.
Save dingyi/4292319 to your computer and use it in GitHub Desktop.
@include handhelds {
table.responsive {
width: 100%;
thead {
display: none;
}
tr {
display: block;
}
td, th {
display: table-row;
&:before {
display: table-cell;
text-align: right;
padding-right: 5px;
content: attr(data-label) ":";
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment