Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color: #E7E9EB;
}
#container { 
  width: calc(100% - 11px);
  height: 350px;
  background-color: #FFFFFF;
  margin: 5px;
  border: solid black 1px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  place-items: stretch end;
}
#container > div {
  background-color: lightblue;
  padding: 30px;
}
</style>
</head>
<body>
<h1>The place-items property</h1>
<div id="container">
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
</div>
</body>
</html>