examplist
examplist

Follow

examplist

Follow

'aspect-ratio', If the Element Has No Width or Height

examplist's photo
examplist
·Nov 28, 2022·

1 min read

The width of the parent becomes the width of the element.

Then, the height of the element is determined by the width of the element and the aspect ratio.

https://codepen.io/bada3670/pen/zYaLxOw
aspect-ratio
 
Share this