Home
CSS
CSS Units
Tryit: Using vmin
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> h1 { font-size: 15vmin; } </style> </head> <body> <h1>Hello</h1> <p>Resize the browser window (both width and height) to see how the font-size of h1 changes.</p> <p>1vmin = 1vw or 1vh, whichever is smaller.</p> </body> </html>