Design comparison
Community feedback
- @correlucasPosted over 2 years ago
πΎHello @CarvalhoVincent, congratulations for your new solution!
Your solution is already really good, the reason that its not responsive yet is due the
width
inside the container, button, header and pricing section, note thatwidth
is a fixed property this means that the size value doesnt change, instead usemax-width
this way you make these elements to have a maximum size but have the ability to decrease its size.To make your image fully responsive add
display: block
andmax-width: 100%
andobject-fit: cover
to make the image auto-crop when resizing inside the column:img { display: block; object-fit: cover; max-width: 100%; }
π I hope this helps you and happy coding!
Marked as helpful0@CarvalhoVincentPosted over 2 years agoHello @correlucas and thank you for your comment, it helps a lot! I will try your suggestions in my next challenges. Happy coding!
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