Design comparison
Solution retrospective
I'm proud that I was using mostly rem units instead of pixels (with two exceptions, were using the pixels made more sense).
But since the design wasn't following specific sizing/spacing rules, the rem units seemed a bit random. In a real world setting I would follow at least some spacing rules (like the tailwind one) so I would not have to use seemingly arbitrary rem units.
What challenges did you encounter, and how did you overcome them?I thought it was a bit surprising that the element that contained the title/subtitle element were a bit smaller than the actual content (like in the desktop version the title and subtile were each 54px in height with a gap of -3px, but the total height of the container element was 102px but when calculating the height it would be 54Γ2β3 = 105px
, so I had to subtract those from the space between the title/subtitle and intro text element.
Community feedback
- @MikDra1Posted 2 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 πππ
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