The Most Secure Cross Browser Testing Platform since 2012

Blog

Cross Browser Viewport units: vw, vh, vmin, vmax

Manual_Browser_Testing
BLOG / Web Development

Cross Browser Viewport units: vw, vh, vmin, vmax

Viewport units: vw, vh, vmin, vmax is the length units representing 1% of the viewport size for viewport width (vw), height (vh), the smaller of the two (vmin), or the larger of the two (vmax).

Browser Support

This feature is already supported by a few major browsers including Chrome, Firefox, Safari and Opera.

Code Example

You can use Viewport units: vw, vh, vmin, vmax like this:

h1 { font-size: 8vw }

More Information

More information can be found here.