Answers for "how to center a div in a div using css"

CSS
95

center a div in css

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

how to centre a div

.class-name {
	display:flex;
    justify-content:centre;
    align-items:centre;
}
Posted by: Guest on October-12-2021

Browse Popular Code Answers by Language