+ 1

How can I move the text to the center of the block?

How can I move the text to the center of the block? I mean not the center of the line, the center of the block. And when it is in the center, move it to the left side of the line. Look at the example below. Thanks in advance! --------------- Example code deleted. Thanks to all. Best answer - Maxime's

14th Mar 2018, 6:30 AM
PAXANDDOS
PAXANDDOS - avatar
12 odpowiedzi
+ 14
line-height:100px 🙂
14th Mar 2018, 6:35 AM
Maxımee
Maxımee - avatar
+ 14
you can use padding too 👍
14th Mar 2018, 6:36 AM
Maxımee
Maxımee - avatar
+ 14
you're welcome x)
14th Mar 2018, 6:38 AM
Maxımee
Maxımee - avatar
+ 12
@John Doe , look out the code before answer ^^
14th Mar 2018, 11:07 AM
Maxımee
Maxımee - avatar
+ 12
yeah ^^
14th Mar 2018, 12:03 PM
Maxımee
Maxımee - avatar
+ 12
thanks for the best answer x) 🙂
14th Mar 2018, 1:55 PM
Maxımee
Maxımee - avatar
+ 6
line 17 <center> Number is a number</center>
14th Mar 2018, 11:59 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 1
Thanks!
14th Mar 2018, 6:38 AM
PAXANDDOS
PAXANDDOS - avatar
+ 1
<header> <div id="head"> Number is a number </div> CSS: #head { text-align: center; }
14th Mar 2018, 7:04 AM
John Doe
+ 1
@John Doe, yeah I have tried that before, it's not correct
14th Mar 2018, 11:37 AM
PAXANDDOS
PAXANDDOS - avatar
14th Mar 2018, 2:10 PM
John Doe
0
What is block? Anyone?
14th Mar 2018, 1:36 PM
John Doe