div-aspect

Fixed aspect ratio. The element's height is calculated based on the width, ignoring the height value.

Parameters

Parameters Description
ratio

number

Required parameter.

height = width / ratio.

Restriction for the value x: x > 0.

JSON
{
  ratio*: "number"
}