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

@kethmars

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


How would you solve the border-top?

Community feedback

@wuzer1

Posted

You can give each card an ID and set the desired border-top. Or you can use nth-child for each card to set the border top.

0

@kethmars

Posted

Thank you for your suggestion.

But setting border-top leaves some curves which are not exactly what design suggests. Atm I used pseudo elements.

What do you think?

0

@edburtnieks-private

Posted

Hey @kethmars. I used ::before pseudo element too. I think that's a solid way to go around the curves you mentioned :)

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