Day 51: aspect-ratio and replaced elements

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
Most elements have no preferred aspect ratio. On day 42 I’ve explained how you can use the aspect-ratio property to define a ratio for these elements. Replaced elements like , , , or , on the other hand, have an intrinsic aspect ratio. This means that you don’t have to define one using the aspect-ratio property and they will scale naturally. ...