div { display: inline-grid; grid-template-columns: repeat(3, 1fr); grid-gap: 3px; justify-items: center; align-items: center; }
.center { display: grid; place-items: center; }