Skip to content

Instantly share code, notes, and snippets.

@AdriC1705
Created October 17, 2019 17:32
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 AdriC1705/e93df502d662d359bf8b642ec1a10f82 to your computer and use it in GitHub Desktop.
Save AdriC1705/e93df502d662d359bf8b642ec1a10f82 to your computer and use it in GitHub Desktop.
Alternate colors in a list with css
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