Gunnar Bittersmann: Ausrichtung mit flex

Beitrag lesen

@@Walter P.

Wie erreiche ich, dass der Text im nav-Bereich oben im Bereich beginnt

align-items: start für die Flexbox.

Aber wie gesagt, Grid ist das bessere und einfachere Tool für dein Seitenlayout.

und dort bleibt, wenn man den aside-Bereich nach unten "scrollt".

position: sticky ☞ Beispiel

codepen

Von den notwendigen HTML-Änderungen hast du noch nichts umgesetzt‽

🖖 Live long and prosper

--
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14