Hallo,
woran liegt es, dass sich meine Bilder (nach vielen Versuchen) noch immer nicht bei kleinem Viewport verkleinrt?
Hier der Code:
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stop-Test</title>
<style>
* {
box-sizing: border-box;
}
body {
display: grid;
}
@media (min-width: 45em) {
body {
grid-template-columns: 1fr 3fr 1fr;
}
}
header {
grid-column: 1 / -1;
display: grid;
grid-template-columns: auto auto auto;
grid-column-gap: 1.5em;
justify-content: center;
align-items: center;
}
header h1 {
margin: 0;
text-align: center;
font-size: max(3vw, 14px);
}
header img {
max-width: 100%;
width: 100%;
height: auto;
}
h1 span {
display: inline-block;
}
</style>
</head>
<body>
<header>
<img src="logo.JPG" alt="Stop-Schild" />
<h1>Stop</h1>
<img src="logo.JPG" alt="Stop-Schild" />
</header>