From 27a23de40f2dac75afbc779731a0019d5192ff22 Mon Sep 17 00:00:00 2001 From: Thierry Koblentz Date: Tue, 18 May 2021 09:38:00 -0700 Subject: [PATCH] Reset height of img to preserve aspect-ratio This [example](https://codepen.io/thierry/pen/jOBMjKv) shows the importance of resetting the height of images styled with min/max-width --- src/reset.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reset.css b/src/reset.css index f3d489c..11057fc 100644 --- a/src/reset.css +++ b/src/reset.css @@ -46,6 +46,7 @@ a:not([class]) { img, picture { max-width: 100%; + height: auto; display: block; }