Single Pricing Card Component - HTML & CSS with Flexbox & Grid
Design comparison
Solution retrospective
This is my second FEM project! I'd love to get your feedback on how I can improve my code/approach.
Community feedback
- @ApplePieGiraffePosted over 3 years ago
Hey there, nicoleanalisecox! 👋
Nice work on this challenge! 🙌 Your solution looks great! 👍
I'd like to suggest,
- Switching to a mobile-friendly layout slightly sooner to avoid the sides of the cards moving off the edges of the screen and therefore not being able to be seen right before the layout changes.
- Adding
cursor: pointer
to the button on the card component.
Keep coding (and happy coding, too)! 😁
1@nicoleanalisecoxPosted over 3 years ago@ApplePieGiraffe
Thank you for your comments! Love the simple addition of the pointer cursor improving the interaction with the button!
0 - @pikapikamartPosted over 3 years ago
Hey, just a suggestion. Instead of using max-height as argument in the media query, just use max-width since that is most commonly used and I see that it causes your layout to change because you added
width: 311px
in the .main-card class. Try removing the width so that even in dev tools, your layout will stay the same and will not change because of the width being written^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