From f77643af44262e7cbf291903726bb19230448acb Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Tue, 26 May 2026 10:59:07 +0200 Subject: [PATCH] body-css-anpassungen --- css/footer.css | 4 ---- css/main.css | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/css/footer.css b/css/footer.css index fff2e04..089dc51 100644 --- a/css/footer.css +++ b/css/footer.css @@ -1,13 +1,9 @@ /* Footer‑Grundlayout */ footer { - position: relative; width: 100%; background: #333d43; text-align: center; padding: 10px 0; - - /* Berechnet die Resthöhe: 100% Bildschirmhöhe minus geschätzte Inhaltshöhe */ - margin-top: calc(100vh - 400px); } footer a { diff --git a/css/main.css b/css/main.css index 1e6d3f6..2392a9a 100644 --- a/css/main.css +++ b/css/main.css @@ -9,6 +9,10 @@ body { background-color: #eef2f7; color: #1f2937; margin: 0; + + min-height: 100vh; + display: grid; + grid-template-rows: auto 1fr auto; /* Header(auto), Inhalt (bekommt Rest), Footer(auto) */ } a, button, input, select, textarea, label, main{