Course lesson

Scale Images with object-fit

object-fit puts you in control of img and video aspect ratio. Images and videos have a source aspect ratios and those ratios can differ from their containers. object-fit has has values for scaling content to fit the available space of your layouts.

Duration
3 min
Access
Free
Transcript
Available

object-fit puts you in control of img and video aspect ratio. Images and videos have a source aspect ratios and those ratios can differ from their containers. object-fit has has values for scaling content to fit the available space of your layouts.