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 Feature Card Section Using CSS Grid

@Tzienom

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


Hello, folks. I used css grid and a position relative to get my cards in place for the desktop layout. Is that the best solution to it, and is there any other method to laying the cards out?

Secondly, the border color at the top of each card, is a 'before' pseudo class or border-top more appropriate? Thanks in advance.

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

👋 Hi Gabriel!

Regarding to your questions:

  1. In my opinion, using grid is the best option to create that layout and obviously there are many ways to create that layout. You can use flexbox, absolute positioning(not recommended), and etc.
  2. I used border top to create that and in my opinion, that's the best and easiest way to achieve that.

That's it! Hopefully this answer your questions!

Marked as helpful

0

@Tzienom

Posted

@vanzasetia Yeah, it does answer my questions. Thanks a lot. Really appreciated.

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