Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CSS : select last X items
//Last 4 items won't have margin
.selector{
margin-bottom: 20px;
&:nth-last-child(-n+4){
margin-bottom: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.