Answers for "how to make text in a div center"

1

center text inside a div

text-align: center;
vertical-align: middle;
line-height: 90px;       /* The same as your div height */
Posted by: Guest on June-23-2021
7

center text in div container

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

Browse Popular Code Answers by Language