Design comparison
Solution retrospective
I am most proud of learning and using grid to create the desktop layout.
What challenges did you encounter, and how did you overcome them?CSS grid is confusing to me, but I was able to overcome the layout issue I was facing by playing with code that was similar to what I was trying to achieve.
Community feedback
- @MikDra1Posted 3 months ago
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 😁😊😉
Marked as helpful1@SaekitPosted 3 months ago@MikDra1 thanks! 😊 This was helpful. I applied the change to my code. I also needed to add
overflow: hidden
to the Card element to get that curved look.0
Please log in to post a comment
Log in with GitHubJoin 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