vi

val Number.vi: CSSSizeValue<CSSUnit.vi>(source)

Represents 1% of the viewport's inline size.

This is the same as vh when the document is using a horizontal writing mode or vw if vertical.

This value may be affected by on-screen UI elements, but it generally lags behind them being shown or hidden. Use dvi if you want something that reacts to UI elements in real time.

See also