unit

dvi — CSS reference

One dvi is one hundredth of the inline dimension of its viewport reference. This variant responds to the dynamic viewport as retractable browser controls change. Resizing can cause layout updates; smooth changes are not guaranteed. In horizontal writing this follows width; in vertical writing it follows the other physical dimension. The spec summary and detailed axis wording differ; in this Chromium build a vertical descendant uses its own writing mode; cross-browser interoperability remains unverified. Viewport sizes are not physical screen dimensions or necessarily the visual viewport during zoom. Scrollbar reservation can affect sizing.

Formal Syntax & Structure

css syntaxcss
width: 10dvi;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Relative length lab</title><style>body {margin:0} .sample {height:12px;background:#006050}html {writing-mode:horizontal-tb;overflow:hidden} #a {width:10dvi} #b {width:20dvi} #vertical {writing-mode:vertical-rl;width:10dvi}</style><body><div id="a" class="sample"></div><div id="b" class="sample"></div><div id="vertical" class="sample"></div></body></html>
CSS Reference