# build-complex-layouts-with-css-grid-layout
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.2/normalize.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
<div class="grid-item">1</div>
<div class="grid-item">2</div>
<div class="grid-item">3</div>
<div class="grid-item">4</div>
<div class="grid-item">5</div>
</div>
</body>
</html>
.container {
display: grid;
grid-gap: 10px;
height: 100vh;
}
.grid-item {
background-color: yellowgreen;
font-size: 40px;
}
.grid-item:nth-of-type(2) {
order: -1;
}
.grid-item:nth-of-type(5) {
/* order: -1; */
grid-row: 1;
}