<!Doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style2.css">
</head>
<body>
<div class="page">
<header>
<img class="img-1" src="img/index2/food-macaron-colorful-colors-wallpaper-preview.jpg">
<img class="img-2" src="img/index2/1280px-California_Clipper_500.jpg">
<img class="img-3" src="img/index2/3086648.jpg">
</header>
<img class="img-4" src="img/index2/food-macaron-colorful-colors-wallpaper-preview.jpg">
<img class="img-5" src="img/index2/1280px-California_Clipper_500.jpg">
<img class="img-6" src="img/index2/3086648.jpg">
<img class="img-7" src="img/index2/food-macaron-colorful-colors-wallpaper-preview.jpg">
<img class="img-8" src="img/index2/1280px-California_Clipper_500.jpg">
<img class="img-9" src="img/index2/3086648.jpg">
</div>
</body>
</html>
html, body {
margin: 0;
padding: 0;
}
body {
background-color: pink;
}
.page {
display: grid;
justify-items: center;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(5, auto);
grid-auto-rows: minmax(50px, auto);
max-width: 1200px;
width: auto;
margin: 0 auto;
grid-template-areas:
"header header"
"img-4 img-5"
"img-6 img-7"
"img-8 img-9";
}
header {
grid-column: 1/3;
grid-template-areas:
"img-1 img-2 img-3";
}
.img-4 {
margin-left: auto;
}
header {
height: 150px;
}
.page img {
height: 150px;
}