How do i change the text position from where it is to the middle? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do i change the text position from where it is to the middle?

My header has texts, I want the text to appear in the middle of the header not top where it is.

3rd May 2020, 1:05 PM
Iwasam Enya
Iwasam Enya - avatar
7 Answers
+ 3
Try .eny { text-align: center; line-height: 15vh; }
3rd May 2020, 4:19 PM
Calviղ
Calviղ - avatar
+ 3
Add .eny { text-align: center; }
3rd May 2020, 1:09 PM
Calviղ
Calviղ - avatar
+ 1
Thanks Calviղ
3rd May 2020, 4:47 PM
Iwasam Enya
Iwasam Enya - avatar
3rd May 2020, 1:06 PM
Iwasam Enya
Iwasam Enya - avatar
0
Calviղ it is centred but still at the top of the header. Like center top. I want the text in the middle of the header, as in middle of the height
3rd May 2020, 1:11 PM
Iwasam Enya
Iwasam Enya - avatar
0
Wrap content with span tag span{ top:30px; position:relative; left:30px; }
3rd May 2020, 1:17 PM
Abhay
Abhay - avatar
0
padding-top: 300px;
3rd May 2020, 1:45 PM
Hassan
Hassan - avatar