Answers for "centering boxes in css"

CSS
15

css align items vertical center

.parent {
  display: flex;
  justify-content: center;
  align-items: center;
}
Posted by: Guest on October-31-2020
6

centering css elements

// add to the parent element
.parent {
	display: grid;
    place-items: center;
}
Posted by: Guest on August-06-2020

Browse Popular Code Answers by Language