https://www.youtube.com/watch?v=-Wv-YuHc0vw&t=23s
The CSS property aspect-ratio lets you style elements that maintain proportional dimensions where the height and width of a box are calculated automatically as a ratio without the need of using the famous padding-top hack.
You can find the written version of this tutorial in the article linked here right here https://dev.to/alvarosaburido/css-asp...
Come say hi on Twitter https://twitter.com/alvarosaburido1
The CSS property aspect-ratio lets you style elements that maintain proportional dimensions where the height and width of a box are calculated automatically as a ratio without the need of using the famous padding-top hack.
You can find the written version of this tutorial in the article linked here right here https://dev.to/alvarosaburido/css-asp...
Come say hi on Twitter https://twitter.com/alvarosaburido1