@@Matthias Scharwies
white-space: nowrap;
Nein. Wegen „wobei der aus mehreren Worten bestehende Text einzeilig bleiben sollte, soweit Platz vorhanden ist.“ (Hervorhebung von mir)
Das ist wohl ein Fall für width: max-content
, gepaart mit max-width: 100%
– bei Grid.
Mit Flexbox geht’s in dem Fall einfacher.
😷 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