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 tricky grid

@ivaberiashvili

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


I'd love to hear how did you make the little labels on top of each card. Some people used just another card underneath, but if you look closely, there is some form of mask or clipping going on.

Community feedback

Lucas 👾 104,560

@correlucas

Posted

👋 Hello Iva, congratulations for your solution!

You can just create a <span> tag on the html of card div and in the css apply the height and color for the label, of course in the span should not have the card border/paddings to be full width.

Or you can also try the way I did in my solution, using the a pseudo-element, in my case the code was like this:

.card-red::before, .card-blue::before, .card-cyan::before, .card-yellow::before { content: " "; width: 100%; height: 0.3125rem; position: absolute; }'

You can check in my solution here: https://www.frontendmentor.io/challenges/four-card-feature-section-weK1eFYK/hub/4-card-feature-section-vanilla-css-custom-design-glassmorphism-35MDUfOBdt

I hope it help you!

Marked as helpful

0

@ivaberiashvili

Posted

@correlucas Thank you Lucas! 🙏

Yes!!! Now it seems so simple and I really complicated it with clip paths. Your solution is so cool! Great additional touches 💪

1

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