Update snippet structure

This commit is contained in:
Angelos Chalaris
2019-08-22 12:30:43 +03:00
parent ae9eaee179
commit 343f8fd4c7
46 changed files with 276 additions and 92 deletions

View File

@ -1,4 +1,7 @@
### Fit image in container
---
title: Fit image in container
tags: layout, visual,intermediate
---
Changes the fit and position of an image within its container while preserving its aspect ratio. Previously only possible using a background image and the `background-size` property.
@ -42,5 +45,6 @@ Changes the fit and position of an image within its container while preserving i
- https://caniuse.com/#feat=object-fit
<!-- tags: layout, visual -->
<!-- date: 2018-10-31 -->