Bada
Bada's Coding

Follow

Bada's Coding

Follow

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

Bada's photo
Bada
·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.

 
Share this