Answers for "ways of centering a div in div"

CSS
89

center a div in css

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

how to center an element in css

.container{
  display:bock;
  width:fit-content;
  margin:auto;
}
Posted by: Guest on September-23-2021

Browse Popular Code Answers by Language