Why the text wraps?

Why the text wraps to the 2 line? He has enough spacee246MR4KGrc.jpg
April 7th 20 at 10:42
3 answers
April 7th 20 at 10:44
Solution
And You have determined that there is enough space? I think - just close, but we still have gaps.
The sides have space, no indents from the edges there. The sides have enough space to 120px - freddy95 commented on April 7th 20 at 10:47
@freddy95, learn css, Dawg. padding is not a "free space", padding is a specific indent, the text can't climb padding.
You need to remove the padding and put text-align: center; - alfred commented on April 7th 20 at 10:50
@alfred, if you remove padding, then a blue frame will be very close to the text - freddy95 commented on April 7th 20 at 10:53
@freddy95, postavi width... - alfred commented on April 7th 20 at 10:56
@alfred, well, choice I also do not see - freddy95 commented on April 7th 20 at 10:59
@alfred, I just wanted the size has varied depending on the text. If the indents match, if a little text, and the sides will not a lot of space - freddy95 commented on April 7th 20 at 11:02
@freddy95, then the min-width and a small padding. - alfred commented on April 7th 20 at 11:05
April 7th 20 at 10:46
white-space: nowrap
April 7th 20 at 10:48
Make padding on the sides a little less, but better ask text-align: center;

Find more questions by tags CSSHTML