Skip to content

Instantly share code, notes, and snippets.

@wernerkrauss
Created June 17, 2015 13:58
Show Gist options
  • Save wernerkrauss/f72f1214ce27e3acba2a to your computer and use it in GitHub Desktop.
Save wernerkrauss/f72f1214ce27e3acba2a to your computer and use it in GitHub Desktop.
sass / foundation snippet to get a responsive two column table.
.responsive-twocolumn-table {
width: 100%;
th {
display: none;
}
td {
width: 100%;
display: block;
&:first-child {
font-weight: bold;
}
}
@media#{$medium-up}{
td, th {
vertical-align: top;
display: table-cell;
}
td:first-child {
width: 30%;
font-weight: normal;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment