From d9052466ae90dd876736693841b7b682152d8643 Mon Sep 17 00:00:00 2001 From: Lanta Date: Fri, 3 Nov 2023 21:44:13 +0100 Subject: [PATCH] media --- includes/styles.css | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/includes/styles.css b/includes/styles.css index 3d3bf7a..e046a92 100644 --- a/includes/styles.css +++ b/includes/styles.css @@ -81,17 +81,27 @@ footer { } @media (max-width: 600px) { - nav li { - display: block; - margin-right: 0; - } header .banner { - max-width: 600px; /* Ensures the image is never larger than its container */ - height: auto; - 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 */ + max-height: 100px; /* Resize the maximum height for mobile */ + width: 100%; /* Take full width of the container */ } + + /* You may also want to adjust other elements to fit mobile layout better */ + header, main, footer { + min-width: 0; /* Allow the width to shrink below 800px */ + padding: 10px; /* Reduce padding for mobile devices */ + margin: 10px auto; /* Less margin for tighter mobile layout */ + } + + nav { + min-width: 0; /* Allow the nav to be responsive below 800px */ + } + + nav ul { + text-align: left; /* Align nav items to the left on mobile for better spacing */ + } + + /* Other styles can be added here as needed for mobile optimization */ } table {