Answers for "how to center an element in a container"

CSS
89

center a div in css

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}
Posted by: Guest on September-09-2020

Code answers related to "how to center an element in a container"

Browse Popular Code Answers by Language