Answers for "css center horizontal"

CSS
15

css align items vertical center

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

how to horizontal center a div in css

#inner {
  width: 50%;
  margin: 0 auto;
}
Posted by: Guest on June-18-2020
1

css center horizontally

text-align: center; /*also works for images or anything inside the object (I think)*/
Posted by: Guest on July-12-2021

Browse Popular Code Answers by Language