Was ist ein Viewport-Höhe (vh)?
vh (viewport height) is a CSS unit equal to 1% of the viewport's height. On a 1080px tall screen, 1vh equals 10.8px.
Definition
Symbol
vh
Kategorie
CSS-Einheiten
System
CSS
1 {unit} = {value} {otherUnit}
1 Viewport-Höhe = 10.8 Pixel (px)
1 Viewport-Höhe = 0.675 Rem (rem)
1 Viewport-Höhe = 0.675 Em (em)
1 Viewport-Höhe = 8.1 Punkt (pt)
1 Viewport-Höhe = 0.675 Pica (pc)
Häufige Verwendungen
- Full-screen sections
- Hero banners
- Vertical centering