Skip to content

Instantly share code, notes, and snippets.

@MariaJackson1
Last active August 8, 2022 21:10
Show Gist options
  • Save MariaJackson1/7e6428f89a6435ff792541bdeaf16797 to your computer and use it in GitHub Desktop.
Save MariaJackson1/7e6428f89a6435ff792541bdeaf16797 to your computer and use it in GitHub Desktop.
Target every child except last child
li:not(:last-child) {
border-bottom: 1px solid;
}
or
li + li {
border-top: 1px solid;
}
@MariaJackson1
Copy link
Author

In case you want to add a line between elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment