Mariusz• 120
@MariusG1991
Posted
Hi, U can set
img{
height: 100%; // to fill empty space on top and bottom
object-fit: cover; // to maintain its aspect ratio while filling the element's entire content box
}
0
Please Review this code and give me your valuable feedback.
@MariusG1991
Posted
Hi, U can set
img{
height: 100%; // to fill empty space on top and bottom
object-fit: cover; // to maintain its aspect ratio while filling the element's entire content box
}
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