100vh mobile Problem

Hierfür gibt es eine ganz einfache Lösung:

body {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* oder auch noch einfacher */
body {
    position: relative;
    inset: 0;
}
Veröffentlicht am
Kategorisiert in CSS, Hacks