Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HTML Tables CSS File
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
font-family: 'Lato', sans-serif;
color: #333;
font-weight: 400;
font-size: 16px;
}
table {
max-width: 960px;
margin: 80px auto;
}
caption {
font-size: 18px;
font-weight: 400;
padding: 12px 0;
}
thead th {
background: #35D380;
color: #fff;
font-weight: initial;
}
tr { background: #f1f1f1; }
tr:nth-child(2n) { background: #e0e0e0; }
th, td {
text-align: left;
padding: 24px;
}
tfoot tr { background: none; }
tfoot td {
padding: 12px 2px;
font-style: italic;
color: #8a97a0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment