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 with tailwindcss

P
Stefan Vetschβ€’ 100

@vstm

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'm proud that I was using mostly rem units instead of pixels (with two exceptions, were using the pixels made more sense).

But since the design wasn't following specific sizing/spacing rules, the rem units seemed a bit random. In a real world setting I would follow at least some spacing rules (like the tailwind one) so I would not have to use seemingly arbitrary rem units.

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

I thought it was a bit surprising that the element that contained the title/subtitle element were a bit smaller than the actual content (like in the desktop version the title and subtile were each 54px in height with a gap of -3px, but the total height of the container element was 102px but when calculating the height it would be 54Γ—2βˆ’3 = 105px, so I had to subtract those from the space between the title/subtitle and intro text element.

Community feedback

MikDra1β€’ 6,070

@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