3-column preview card component

Please log in to post a comment
Log in with GitHubCommunity feedback
- @tburette
Nice solution. You used
place-content
which I didn't know about. It is a shorthand property foralign-content
andjustify-content
.There is a smooth transition when the breakpoint is it : the vertical space between the items within each of the three cards smoothly increase/decrease. I looked at the code and it is caused by :
.button { transition: all 0.4s; }
At first I didn't understand why
transition:
on a button affect the space between the items of a grid. By fiddling around I realized it is the margin-top property of the button which transitions.There is a bunch of CSS that is unused in the final solution : in
.button {}
there are twoborder:
..orange{}
,.green{}
,.cyan{}
are unused,..Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord