Skip to content

Instantly share code, notes, and snippets.

@ansarizafar
Forked from abhishekjakhar/main.css
Created December 11, 2018 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ansarizafar/3e96fbff3ba5ae98c7145f63b88c5a14 to your computer and use it in GitHub Desktop.
Save ansarizafar/3e96fbff3ba5ae98c7145f63b88c5a14 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