Answers for "how to center an object in html"

CSS
15

css align items vertical center

.parent {
  display: flex;
  justify-content: center;
  align-items: center;
}
Posted by: Guest on October-31-2020
1

center css elements

body{
  display: grid;
  place-items: center;
}
Posted by: Guest on November-11-2020

Code answers related to "how to center an object in html"

Browse Popular Code Answers by Language