Responsive Blog Preview Card using CSS Flexbox

Solution retrospective
I wrote my first HTML/CSS with Flexbox and Iam really proud.
What challenges did you encounter, and how did you overcome them?Centering a div. I read several articles but am looking forward to practicing more.
What specific areas of your project would you like help with?Specify width and height of a flex container.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @V0000DY
Great job on completing your HTML/CSS project with Flexbox! It’s awesome that you're proud of that.
Here are some suggestions for their project:
Centering a div can indeed be tricky, so don't worry too much about struggling with it. The fact that you read several articles to overcome this challenge shows your dedication to learning. Practice is key, and you'll find that with time, centering elements will become second nature.
It's common to face challenges when specifying the width and height of a flex container. A good approach is to ensure that the parent container has a defined height or a min-height to properly contain its flex items. Also, explore the different properties like flex-grow, flex-shrink, and flex-basis to control how flex items behave within the container.
If the sizes are off, double-check the dimensions specified in the project's design files against your CSS. Sometimes, a small discrepancy can throw off the entire layout. Using browser developer tools to inspect elements and compare their sizes against the design can be helpful.
Keep experimenting with different values and observing how they affect the layout. There are also many resources available online, such as articles, tutorials, and interactive Flexbox playgrounds, that can help you deepen your understanding.
Consider writing READMEs for your projects to explain your code and process to others.
Your willingness to learn and overcome challenges is evident, and with continued practice, you'll become a proficient front-end developer. Keep up the great work!
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