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

Responsive four card layout using CSS

jkaps9 140

@jkaps9

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?

Proud of my ability to style this using Flexbox and CSS grid

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

Initially was trying to use only Flexbox starting from mobile-first, but quickly realized the desktop design would be much easier with CSS Grid.

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

Any feedback is always welcome

Community feedback

Yulia 320

@YuliaLantzberg

Posted

Hi. It's looking nice. Just the cards should have the white background. And in code I saw you use mostly px. It's better to use rem or em for responsiveness. Then it looks better at the vast variety of screen sizes and needs fewer changes in media queries. Enjoy your coding.

1
MikDra1 5,990

@MikDra1

Posted

Nice one 😀

If you are curious how you can do this straight lines on the top of each card here is my tip:

Create another element in each of the cards. Then position this element absolute. Card should be positioned relative. At the end you need to give this element a height of 3px width of 100% and top 0 and left 0. You can also use ::after or ::before pseudo elements to create these.

Hope you found this comment helpful 💗

Good job and keep going 😁😊😉

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