@@Der Martin
Aber die Kernfrage ist: Wieviel padding gibt man dem ersten Textabsatz? Man kann doch nicht wissen, wieviel Platz die Überschrift einnimmt.
Mit JavaScript kann man’s doch wissen. Und das in eine custom property schreiben, damit man den aktuellen Wert in CSS zur Verfügung hat. Und das initial und bei Größenänderungen des Viewports; dazu ein ResizeObserver eingerichtet wie in dieser Präse gezeigt und in diesem Posting beschrieben.
🖖 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
“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