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-card component using CSS grid and flexbox

@elizabethrsotomayor

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


I struggled with keeping the links all in line with each other and initially had to give each card description its own class, but somehow once I changed the letter spacing it became more even. I consulted the design multiple times to make sure that the padding and width were in line with the specifications. I am unsure about my use of grid because originally I used 5 columns but ended up with 10 in order to make the cards wider.

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hello, Elizabeth! 👋

It's great to see you completing another challenge! 👏

Regarding the issue, I would recommend making the body element as the flex container to put the cards in the middle of the page. After that, set a max-width on the container of the cards element (the .cards element) to prevent the cards from becoming too large on widescreen.

Some recommendations from me.

That's it! Hope this helps.

0

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