Answers for "align content inside 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
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

Code answers related to "align content inside div"

Browse Popular Code Answers by Language