/product-list.component.css Secret
Last active
July 12, 2024 10:48
margins and padding
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
.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