Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

center div

.box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.box div {
  width: 100px;
  height: 100px;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #center #div
ADD COMMENT
Topic
Name
8+7 =