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

Four card feature section use grid and media queries

P

@fish-ladder

Desktop design screenshot for the Four card feature section 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?

I am proud of going a step further with the responsive design and adding a mid-size screen breakpoint with a third layout of the 4 cards.

I was also proud to accurately dial in the little colored accent lines at the top of each card and get the box-shadow effect very close to the design.

Next time I will try to pace myself better. I got a bit manic with my styles and started getting sloppy with writing my code. This made more work for me later in tidying things up.

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

I had a much harder time getting the colored accent stripe right on the top of each card. I first tried just a top border but it didn't look right. Then I tried creating a separate div inside the card but that didn't achieve the right look either. Finally, I created a linear gradient in the background and I think that did the trick.

I also spent more time that I would have like tweaking details like margins and padding in the desktop layout.

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

In terms of layout and sizing, where is it OK to use absolute units like px and when should I be using em or rem?

Community feedback

P
Branka R 160

@brainka

Posted

Hey,

Really good job on your project and the way you have structured your html and css 😄

I don't like to just paste links but I find this explanation very useful when I forget when to use px, rem or em haha ===> EM vs REM vs PX.

Hope this helps!

Good job again 🥳

Marked as helpful

1

P

@fish-ladder

Posted

@brainka

Thank you! Helpful article...

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