height, min-height
bearbeitet von Gunnar Bittersmann@@Jens
> Moin,
> was bewirkt folgendes
>
> ~~~css
> body {
> height: 100;
> ~~~
Im Standard-Modus: gar nichts. Ungültige Angaben werden ignoriert.
Nur im Quirks-Modus (den man durch `<!DOCTYPE html>` vermeiden sollte) wird das als `100px` gedeutet.[^1]
[^1]: wovon ich bei der [CSSBattle](https://cssbattle.dev/) Gebrauch mache
> Kann bei min-height der body größer als 100% werden?
Klar, wenn der Seiteninhalt länger ist als auf eine Viewporthöhe passt.
😷 LLAP
--
*“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.”*{:@en} —John Lennon
{:@en}