Created
October 17, 2019 17:32
-
-
Save AdriC1705/e93df502d662d359bf8b642ec1a10f82 to your computer and use it in GitHub Desktop.
Alternate colors in a list with css
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
li { | |
list-style: none; | |
padding: 8px 16px; | |
font-size: 16px; | |
text-transform: uppercase; | |
font-weight: 700; | |
border-top: 1px solid #dcdcdc; | |
background-color: #4d4a4b; | |
&:nth-child(odd) { | |
background: #454243; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment