Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

center in grid

div {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 3px;
  justify-items: center;
  align-items: center;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #center #grid
ADD COMMENT
Topic
Name
4+3 =