<div class="grid">文字</div>
.grid { display: grid; align-content: center; justify-content: center; background: #eee; width: 200px; height: 200px; }
This Pen is owned by haniwaman on CodePen.
See more by @haniwaman on CodePen
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.