Answers for "css center a text in div"

CSS
44

css center image

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
Posted by: Guest on November-28-2019
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

Browse Popular Code Answers by Language