+ 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
12 Respostas
+ 14
line-height:100px đ
+ 14
you can use padding too đ
+ 14
you're welcome x)
+ 12
@John Doe , look out the code before answer ^^
+ 12
yeah ^^
+ 12
thanks for the best answer x) đ
+ 6
line 17
<center> Number is a number</center>
+ 1
Thanks!
+ 1
<header>
<div id="head">
Number is a number
</div>
CSS:
#head {
text-align: center;
}
+ 1
@John Doe, yeah I have tried that before, it's not correct
0
What is block? Anyone?