Skip to content

Instantly share code, notes, and snippets.

@abhishekjakhar
Last active March 2, 2020 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save abhishekjakhar/2ea51dfc0dcf6f6ed0d44ac0e72f9c54 to your computer and use it in GitHub Desktop.
Save abhishekjakhar/2ea51dfc0dcf6f6ed0d44ac0e72f9c54 to your computer and use it in GitHub Desktop.
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