Design comparison
Solution retrospective
I'm sure there was a lot of manipulating involved in the code, LOL. If someone can tell me how I can do better, I will appreciate.
Community feedback
- @hyrongennikePosted about 2 years ago
Hi @vanessie2424,
Congrats on completing the challenge
Just a few suggestion, remove the
min-height: 68vh
on the .card and set the width of the images to 100%. Also increase the font size it's too smallHope this is helpful.
Marked as helpful0 - @correlucasPosted about 2 years ago
👾Hello RavanCod, Congratulations on completing this challenge!
I saw your solution preview site and I think it's already really good. Here’s some tips for you to improve it:
To improve your component overall responsiveness, something you can do its to create a media query to save space in the
pricing section
to make each information in a different row. Here’s the code for this media query.@media (max-width: 350px) { .value { margin: 10px; display: flex; justify-content: space-between; align-items: center; flex-direction: column; } }
Note that there's no need to use
height
here, because since you set aheight
for an element, this means that this element will grow until a certain point and after that the inner content (as texts or images) will start to pop out the element due its fixed height, so isn't necessary to set theheight
the container height comes from the elements, its paddings and height..card { max-width: 300px; /* min-height: 68vh; */ background: hsl(216, 50%, 16%); border-radius: 20px; padding: 10px; }
✌️ I hope this helps you and happy coding!
0@vanessie2424Posted about 2 years ago@correlucas okay. Thanks. But to use the media query, do I need to remove any code order than the min-height: 68vh, and should I just use the media query under the rest of the code?
0@correlucasPosted about 2 years ago@vanessie2424 The media query will change your solution only after the
max-width
and you can write it separately of the other code writing only the properties that should change.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