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 using Flexbox, CSS Grid, vanilla CSS & HTML.

@FabianAM07

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


What are you most proud of, and what would you do differently next time?

next time I will research more about the grid system and how to use better the button label in HTML.

What challenges did you encounter, and how did you overcome them?

I challenged myself to use the mobile-first methodology to build the design from small screens to large screens, with CSS Grid, I was able to give a nice touch to the design on medium screens

What specific areas of your project would you like help with?

Any tip or comment is welcome, thanks!

Community feedback

P

@Islandstone89

Posted

Good job!

Some suggestions:

HTML:

  • The icons are decorative, meaning the alt text should be empty: alt="".

  • There should only be one <h1> on a page. Given there are 3 similar headings, I would change all of them into a <h2>.

  • Learn More" would navigate to another page, hence it is not a button but a link.

  • Wrap the footer text in a <p>.

CSS:

  • I would recommend adding 1rem of padding on the body, to ensure the card container doesn't touch the edges on small screens. Then, you can remove the margin on the card container.

  • To center the card horizontally and vertically, I would use Flexbox on the body:

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100svh;
  • Remove all heights, and all widths and max-widths in %.

  • Instead, give the card container a max-width of around 75rem.

  • I would set up the grid like this:

Default styles for mobile:

.article {
  display: grid;
  grid-template-columns: 1fr;
}

Which on larger screens changes to grid-template-columns: 1fr 1fr 1fr;.

Marked as helpful

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