Created
February 23, 2021 12:49
-
-
Save jdzcn/2e0e3315555e819c677de2f71153f63f to your computer and use it in GitHub Desktop.
css:table
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; | |
word-break: initial; | |
margin: 0.8em 0; | |
border-collapse:collapse; | |
} | |
table tr { | |
border-top: 1px solid #dfe2e5; | |
margin: 0; | |
padding: 0; | |
} | |
table tr:nth-child(2n), | |
thead { | |
background-color: #f8f8f8; | |
} | |
table th { | |
font-weight: bold; | |
border: 1px solid #dfe2e5; | |
border-bottom: 0; | |
margin: 0; | |
padding: 6px 13px; | |
} | |
table td { | |
border: 1px solid #dfe2e5; | |
margin: 0; | |
padding: 6px 13px; | |
} | |
table th:first-child, | |
table td:first-child { | |
margin-top: 0; | |
} | |
table th:last-child, | |
table td:last-child { | |
margin-bottom: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment