@correlucas
Posted
πΎHello Francesco, congratulations for your new solution!
Here's my tips to improve your component and image responsiveness:
Add display: block
and max-width: 100%
to make the image responsive and object-fit: cover
to have the effect cropping the image inside the container while the container resize:
.img-container img {
display: block;
max-width: 100%;
object-fit: cover;
}
π I hope this helps you and happy coding!
Marked as helpful