Skip to content
HTML.ONE
Home CSS Properties

CSS Aspect-ratio

Sets a preferred width-to-height ratio.

Example

aspect-ratio: 16 / 9;

Further reference

MDN CSS reference

Live preview