Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

3 Column Preview Card Component Using Css Flex πŸ’ͺ and CSS Grid 🌐

Fahim Hossainβ€’ 290

@Mr-NotSoCreative

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello Everyone!! πŸ‘‹ This is my solution to the 3 Column Preview Card Component. I've used CSS display Flex property to horizontally and vertically align the whole 3 column card center and CSS display Grid property to design the preview card. I hope my solution looks as close to the design. If I made any mistakes or if I missed something let me know in the comment section. Feedback is welcome!! ✨

Community feedback

Lucas πŸ‘Ύβ€’ 104,420

@correlucas

Posted

πŸ‘ΎHello Fahim Hossain, congratulations for your new solution!

Your solution seems fine, you did a really good work wrapping the content for these 3 cards. Something you can improve here is to use a single class to manage the content that is mostly the same for the 3 cards (paddings, colors, margins and etc) and another class to manage the characteristics that are different (colors and icon), this way you'll have more control over then and if you need to change something you modify only one class.

About the semantics, you can replace all blocks that you've used <div> and replace with <article> thats a better html markup for this situation.

Here's a complete guide for HTML semantic TAGS: https://www.w3schools.com/TAgs/default.asp

✌️ I hope this helps you and happy coding!

1

Please log in to post a comment

Log in with GitHub
Discord logo

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