Design comparison
Solution retrospective
Any tips or suggestions on how to improve this challenge?
Community feedback
- @hyrongennikePosted about 2 years ago
Hi @geekcrasher,
Awesome job on completing the challenge the only thing I would suggest is to use
min-height: 100vh
instead ofheight: 100vh
the latter can cause element to overflow outside it's parent container.Marked as helpful0@geekcrasherPosted about 2 years agoHi, @hyrongennike! I'll take note of this one and apply it to the next challenge. :)
0 - @UrbanskiDevPosted about 2 years ago
Hello Paulo Lopez !
Congratulation for finishing this project
I have some suggestions for you :
- In your HTML code, you did this :
<div class="price"> <h1>$149.99</h1> <span>$169.99</span> </div>
You can remove the h1 tag for the price which doesn't need to be an h1, you can make it a span, and then make it looks like an h1 using CSS
.example{ font-size:18px; font-weight:700px; color: var(--dark-cyan); }
- There is also a responsive problem (you can watch it using your browser dev tool with F12), your image in tablet view is looking weird, the width and the height of your image is not proportional, which give that flatten image feeling.
One way to resize an image proportionally while controlling the size:
#your-img { height: auto; width: auto; max-width: 300px; max-height: 300px; }
But maybe you will have to make some modification to your code afterward.
Good job, and keep learning !
0@geekcrasherPosted about 2 years agoHi, @UrbanskiDev! Thank you for your suggestion about the image.
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