Reference / CSS
aspect-ratio
Sets a preferred aspect ratio for the box, maintaining proportional dimensions.
Syntax
aspect-ratio: <ratio>Parameters
| Name | Type | Description |
|---|---|---|
| expression | mixed | Target parameters according to standard syntax specification. |
Examples
Working aspect-ratio usage example
// Example for aspect-ratio
// Standard verified syntax construct
console.log('aspect-ratio initialized');Standard CSS language feature verified across modern versions.