Gunnar Bittersmann: Spannweite der viewports

Beitrag lesen

@@Rolf B

Unterhalb von 30em würde ich auch das Entfernen jeglicher body-Margins für sinnvoll halten.

Ich nicht. Auch bei schmalen Viewports soll der Text nicht am Rand kleben.

(body { margin: 0 } kann aber dennoch sinnvoll sein, wenn der Abstand auf andere Weise erzeugt wird, bspw. main { padding: 0.5rem }, insbesondere wenn Hintergrund­­­­farben/-bilder im Spiel sind, die bis zum Rand gehen sollen.)

😷 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