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

CSS
89

center a div in css

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

center a div

.container{
	margin: 0 auto;
    display: flex;
    align-items: center;
}
Posted by: Guest on August-03-2021

Code answers related to "how to center a div in html using css"

Browse Popular Code Answers by Language