@@Silja
... und arum plötzlich das 'calc'.
Für Berechnungen in CSS. Innerhalb von min
, max
, clamp
ist calc
nicht nötig. Hatte ich schon verlinkt.
Die Angabe von
font-size: min(1em + 1vw, 4em); font-size: max(3vw, 14px);
ist doch vermutlich sinnlos, denn es gilt doch nur die zweite Angabe.
Ja. Wenn du nach oben und nach unten begrenzen willst, ist die clamp
-Funktion dein Freund.
😷 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.” —John Lennon
“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.” —John Lennon