Open root
Journal
Software
Developer
CSS
Fit an Image within Its Container
You can use the
object-fit
property
to fit an image within its container.