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 Cards using Flexbox and Grid

oduwa-A 120

@oduwa-A

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?

Figuring out the Grid was surprisingly easy. Using the span element to help the boxes move throughout the grid was a very nice thing to know. I'd see if I could condense the amount of grid elements used next time.

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

Understanding how to place the images was alittle tough. I overcame the problem by messing around with the position element and messing around with size.

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

I would like to know how to format text better, since I didn't exactly format it as presented.

Community feedback

P
gakrita 140

@gakrita

Posted

oduwa-A, hi! First of all, great work!

Here are some key points you should consider for a more compatible result:

  1. Set 'background-color: hsl(0, 0%, 98%);' in the body element.
  2. Set 'max-width: 1110px;' in the section-1 class.

Keep going!

0
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
Claudia 300

@ClaudiaRamirezD

Posted

Well done! Maybe just add some margin-inline to don't get the cards stuck to the edges.

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