Blog preview card name

Solution retrospective
It looks exactly as the figma prototype
What challenges did you encounter, and how did you overcome them?Knowing how to center the elements is always a challenge for me.
What specific areas of your project would you like help with?Tips on how to write my CSS as responsible and maintenable as possible.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @i000o
display: flex
withjustify-content: center;
andalign-items: center
will center the content perfectly on the page. You don't need to addflex-direction: column
because the defaultrow
is apt for this project. When the page flexes down, it adjusts on the X axis, not the Y, so column wouldn't help much in this instance.
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