# 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 class="grid-item">6</div>
      <div class="grid-item">7</div>
      <div class="grid-item">8</div>
      <div class="grid-item">9</div>
      <div class="grid-item">10</div>
    </div>
  </body>
</html>
.container {
  display: grid;
  grid-gap: 20px;
  height: 100vh;
  grid-template-rows: 4fr 6fr;
  grid-auto-rows: 1fr 12fr;
  grid-template-columns: repeat(auto-fill, minmax(300px, auto))
}

.grid-item {
  background-color: mistyrose;
  font-size: 30px;
}