Skip to main content

Tedshd's Dev note

CSS3 - object-fit

Table of Contents

# CSS3 - object-fit

We can use CSS3 property object-fit handle image show area and fit it.

But only IE no support.

Example

See the Pen img object-fit by Ted (@tedshd) on CodePen.

Refer - object-fit Refer - object-fit