Responsive Blog Preview Card using Flexbox and Mobile-first Design
Design comparison
Solution retrospective
I'm most proud of how I implemented the responsive design using Flexbox. It allowed the layout to adapt beautifully to different screen sizes without the need for complex media queries. Next time, I would like to explore CSS Grid to see how it compares to Flexbox for this type of layout.
What challenges did you encounter, and how did you overcome them?One challenge was ensuring the card remained centered on the page across various screen sizes. I overcame this by using a combination of Flexbox properties on the body element to center the card both horizontally and vertically. Additionally, I faced difficulties with the image scaling properly within the card, which I resolved by setting the image width to 100% and height to auto, along with maintaining aspect ratio using CSS.
What specific areas of your project would you like help with?I would like feedback on the semantic HTML structure and how it can be further improved for accessibility. Specifically, I am interested in knowing if there are better practices for structuring the content within the card. Additionally, any suggestions on optimizing the CSS for better performance and maintainability would be appreciated.
Community feedback
- @Anas-95Posted 4 months ago
Hi Lucas, I had the same issue with the img card, well done! I Great solution for the card, I need to learn more flexbox and grid!
0
Please log in to post a comment
Log in with GitHubJoin 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