Design comparison
Solution retrospective
This is my third challenge. So far, I do the mobile layout first, then make alterations for the desktop version in a media query. What else should I be considering? Is the result of my layout satisfactory to the design? How is the organization of my CSS? What other tips or tricks might I employ? Any and all feedback is helpful. Thanks!
Community feedback
- @bramuccciPosted over 3 years ago
Hey, this is pretty awesome! The only things I want to say is that the
padding
in.preview-card-section
is a little arbitrary, I think3rem
is better. And don't useborder-radius
in individuals card, instead.preview-card { border-radius: 0.5rem }
is easy to deal. Again, great work. Keep going~Marked as helpful1@jgreilickPosted over 3 years agoThank you for the feedback @Liltanie! Simplifying the
padding
definitely makes sense. I have a question about theborder-radius
though. When I set it on the.preview-card
and not the individual sections then I lose theborder-radius
altogether. Do you know why that is? It seems the individual sections don't conform to theborder-radius
of their containing element.Thanks again!
1@bramuccciPosted over 3 years ago@jgreilick Oh sorry, I forget to mention. You have to add:
.preview-card { border-radius: 0.5rem; overflow: hidden; }
And you're welcome! I'm glad this help you.
1@jgreilickPosted over 3 years ago@Liltanie Thank you!
Using
overflow: hidden;
actually occurred to me this morning and I was about to give it a try :)I appreciate having the chance to find it for myself. You pointed me in the right direction, and that is perfect mentoring. Keep it up, it's helpful and encouraging!
1
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