Answers for "how to set text center in div"

CSS
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

Browse Popular Code Answers by Language