Dynamic Viewport Units
Warning
This post is more than a year old. Information may be outdated.
The large, small, and dynamic viewport units
- To size something as tall as the viewport, you can use the
vwandvhunits. - There, the viewport size is influenced by the presence or absence of dynamic toolbars. These are user interfaces such as address bars and tab bars
- To solve this problem, the various states of the viewport have been specified at the CSS Working Group.
- Large viewport: The viewport sized assuming any UA interfaces that are dynamically expanded and retracted to be retracted.
- Small Viewport: The viewport sized assuming any UA interfaces that are dynamically expanded and retracted to be expanded
- Units representing the large viewport have the
lvprefix. The units arelvw,lvh,lvi,lvb,lvmin, andlvmax. - Units representing the small viewport have the
svprefix. The units aresvw,svh,svi,svb, , and
Backlinks1
221203Comments