@@JürgenB
normalerweise ist es eine gute Idee, die Schriftgrößen auf ihren Defaultwerten zu lassen.
Wie ich gerade schon Dem Martin geantwortet habe, ist das nicht unbedingt eine gute Idee.
body { --zeilenhoehe: 1.4; @media (width >= 40em) { --zeilenhoehe: 1.5; } line-height: var(--zeilenhoehe); }Der Media Query wird nur für die Zeilenhöhe benötigt. Die könnte man aber auch über eine Formel berechnen.
Wenn man denn mit calc() schon durch Längen dividieren könnte. Solange man nur durch Skalare dividieren kann, bin ich gespannt, wie du das machen willst. Oder meintest du clamp() wie in diesem Beispiel?
🖖 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