<div class="grid">文字</div>
.grid {
	display: grid;
  align-content: center;
  justify-content: center;
	background: #eee;
  width: 200px;
  height: 200px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.