banner fit

This commit is contained in:
thijs 2023-11-03 16:57:42 +01:00
parent 05db52de5d
commit db53dfae91

View file

@ -50,6 +50,14 @@ nav a:active {
transform: translateY(1px); /* Slight Pressed-In effect on Click */
}
header .banner {
max-width: 100%; /* Ensures the image is never larger than its container */
height: auto; /* Maintains the aspect ratio */
display: block; /* Prevents inline default spacing */
margin: 0 auto; /* Centers the image within the header */
}
header, main, footer {
max-width: 800px;
margin: 20px auto;