Last active
August 8, 2022 21:10
-
-
Save MariaJackson1/7e6428f89a6435ff792541bdeaf16797 to your computer and use it in GitHub Desktop.
Target every child except last child
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:not(:last-child) { | |
border-bottom: 1px solid; | |
} | |
or | |
li + li { | |
border-top: 1px solid; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case you want to add a line between elements