Here's my code:
body {
  background-color: brown;
  display: block;
}
.domma { /*This part went wrong.*/
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.grid {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  gap: 15px;
  width: 500px;
  height: 500px;
}
.grid div {
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}<body>
    <div class="domma">
      <div class="grid">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
        <div>9</div>
      </div>
    </div>
</body>result:
I hope ".domma"(body) can center for vertical.
Then I writtedalign-items: center;.
But this is invalid.
I don't know how to make it correct.
I need help, please HELP ME! Thanks!!!!

 
     
     
    