From 5b74a777cf48bc294aada4edb3c2fd7edaa79e0b Mon Sep 17 00:00:00 2001 From: thijs Date: Fri, 3 Nov 2023 16:59:27 +0100 Subject: [PATCH] 200px --- includes/styles.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/styles.css b/includes/styles.css index 271caba..0357f34 100644 --- a/includes/styles.css +++ b/includes/styles.css @@ -52,10 +52,11 @@ nav a:active { header .banner { max-width: 100%; /* Ensures the image is never larger than its container */ - height: 200; /* Maintains the aspect ratio */ + max-height: 200px; /* Maximum height for the image */ display: block; /* Prevents inline default spacing */ margin: 0 auto; /* Centers the image within the header */ - } + width: auto; /* Adjusts the width to maintain the aspect ratio */ +} header, main, footer {