Answers for "how to put div tag in center of page"

CSS
90

center a div in css

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

css main container align center

margin: 0 auto;
Posted by: Guest on January-27-2021
4

how to center a div element

/*ADD MARGIN auto to left and right*/
.box1{
    width:80%;
    margin:0 auto;
}
Posted by: Guest on August-27-2020

Code answers related to "how to put div tag in center of page"

Browse Popular Code Answers by Language