Answers for "how to center element in webpage css"

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 "how to center element in webpage css"

Browse Popular Code Answers by Language