Lucas πΎβ’ 104,420
@correlucas
Posted
πΎHello ASH, congratulations for your new solution!
I saw your preview site, you've done a great work here, the design is perfect.
The only thing missing is the component responsive, to reach the responsiveness you've to replace all width
with max-width
to allow the container to contract. Note that all the elements inside the container should have max-width
.
To make the image responsive and scaling with the container use:
img {
display: block;
object-fit: cover;
max-width: 100%;
}
π I hope this helps you and happy coding!
Marked as helpful
0