Answers for "make element center"

CSS
1

center css elements

body{
  display: grid;
  place-items: center;
}
Posted by: Guest on November-11-2020
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 "make element center"

Browse Popular Code Answers by Language