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

4 Cards Project

Sean H 90

@Sean-LH

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 most proud of the following:

  1. Continuing to use these projects to implement and practice typescript fundamentals, and it worked well with my react components.

  2. I used CSS Grid for the first time with this project. and I feel like it worked well on both small and large screens.

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

I was struggling to use CSS grid because I didn't understand rows. I also struggled with positioning two of the card elements. I wasn't sure if I was missing some grid trick that would move the cards I wanted to where I wanted them to be.

Ultimately, I decided to use relative position to make the elements move the way I wanted them to move. If anyone with more experience than me sees this, please let me know if there is a way I could have moved the items without using postion.

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

For now, it would using Grid to correctly position items that aren't available to be moved due to the tracks or grid lines.

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