// a right margin on each element except the last one
.class{
&:not(:last-child) {
margin-right: 1rem;
}
}
Last active
August 13, 2022 15:21
-
-
Save darnocer/cb1cce1bb249054e00547be1a3988d27 to your computer and use it in GitHub Desktop.
Exclude Last Child from Styles in CSS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment