Answers for "center an elemment in the center"

CSS
89

center a div in css

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

how to center a div

.div {
	width: 80%;
    margin: auto;
}
Posted by: Guest on September-27-2021

Browse Popular Code Answers by Language