How to put text in the middle of your screen? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to put text in the middle of your screen?

31st Oct 2021, 2:27 PM
Bob Bob
5 Answers
+ 3
Specify the language or tag it. I assume you're using HTML and CSS, so the below is one way to do it. The answer to this question can be found by just doing an internet search. All the best =) https://code.sololearn.com/W1bSSROYt1jW/?ref=app
31st Oct 2021, 2:31 PM
Rishi
Rishi - avatar
+ 2
body { display:flex; align-items:center; justify-content:center; } or https://code.sololearn.com/W7NbAJX0eFV4/?ref=app https://code.sololearn.com/W4uOc9EWMbAi/?ref=app
31st Oct 2021, 4:49 PM
Solo
Solo - avatar
+ 1
In html we can apply center tag In programming languages we can apply escape sequence characters \t \b
2nd Nov 2021, 12:21 PM
sree harsha
sree harsha - avatar
0
Yes, I know how to do that, but how can you make the text go in the middle middle not top middle
31st Oct 2021, 2:50 PM
Bob Bob