Created
July 7, 2015 07:57
-
-
Save jsborjesson/231a1c26dcbc6f79d1bf to your computer and use it in GitHub Desktop.
Makes tables look decent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table { | |
padding: 0; | |
border-collapse: collapse; | |
} | |
table tr { | |
border-top: 1px solid #cccccc; | |
background-color: white; | |
margin: 0; | |
padding: 0; | |
} | |
table tr:nth-child(2n) { | |
background-color: #f8f8f8; | |
} | |
table tr th { | |
font-weight: bold; | |
border: 1px solid #cccccc; | |
text-align: left; | |
margin: 0; | |
padding: 6px 13px; | |
background: #f0f0f0; | |
} | |
table tr td { | |
border: 1px solid #cccccc; | |
text-align: left; | |
margin: 0; | |
padding: 6px 13px; | |
} | |
table tr:first-child, table tr:first-child { | |
margin-top: 0; | |
} | |
table tr:last-child, table tr:last-child { | |
margin-bottom: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment