Skip to content

Instantly share code, notes, and snippets.

@cezar-plescan
Last active July 12, 2024 10:48
margins and padding
.product-list {
/* Padding is used on the container to create space between the content and the container's edge */
padding: 1rem;
}
.product-card {
/* Add a bottom margin to create vertical space between product cards,
with the exception of the last card. */
&:not(:last-child) {
margin-bottom: 1rem;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment