Answers for "how to center text in box css"

CSS
1

how to center an element in css

.element {
  position: absoloute;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
Posted by: Guest on August-04-2021
21

how to center text in css

.class {
	text-align: center;
}
Posted by: Guest on February-15-2020
7

center text in div container

text-align: center
Posted by: Guest on June-01-2020

Browse Popular Code Answers by Language