This commit is contained in:
Lanta 2023-11-03 21:44:13 +01:00
parent 8db63e3b24
commit d9052466ae

View file

@ -81,17 +81,27 @@ footer {
} }
@media (max-width: 600px) { @media (max-width: 600px) {
nav li {
display: block;
margin-right: 0;
}
header .banner { header .banner {
max-width: 600px; /* Ensures the image is never larger than its container */ max-height: 100px; /* Resize the maximum height for mobile */
height: auto; width: 100%; /* Take full width of the container */
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 */
} }
/* 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 { table {