Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Stats preview component card solution

@fernandanevesf

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


When I zoom in on my browser, the image gets cut off starting at 133%. I'd like to know why this is happening. Feedback on anything else is welcome as well.

Community feedback

@Blackpachamame

Posted

¡Buen trabajo Fernanda!

Por lo que entiendo la imagen se corta porque usas la propiedad object-fit: cover; y esto lo que hace es intentar ajustar la imagen manteniendo la relación aspecto con respecto a su contenedor y, que en caso contrario, corte la imagen.

En caso que no uses cover, entonces la imagen se estiraría o "arrugaría" solo para encajar completa dentro del contenedor.

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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