A Quick Overview of `object-fit` and `object-position`

20 de febrero de 2016


object-fit and object-position are my two favourite CSS properties lately. They give developers control over the content inside an img or a video similar to the way that we can manipulate the content of a background with background-position and background-size.

First, let’s dig into object-fit.

This property defines how an element, such as an img, responds to the width and height of its content box. With object-fit we can tell the content to fill that box in …


A Quick Overview of `object-fit` and `object-position` is a post from CSS-Tricks



Thanks to: CSS-Tricks Permanent link

No hay comentarios.:

Publicar un comentario

Thanks for your comment

 

Buscar este blog

Favorite drug

Top views