div-aspect

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

JSON

{
  ratio*: "number"
}

Parameters

ParametersDescription
ratio

number

Required parameter.

height = width / ratio.

Restriction for the value x: x > 0.

ParametersDescription
ratio

number

Required parameter.

height = width / ratio.

Restriction for the value x: x > 0.