How do you to put spaces between text in html? For example,
<p>a b c</p>
What do you put to have space between b and c?
Try using white-space
with value pre
.
pre
Sequences of whitespace are preserved. Lines are only broken at newline characters in the source and at<br>
elements.
p {
white-space: pre;
}
<p>a b c</p>
Use a monospaced font if you need each black space to take exactly one character width.
p {
white-space: pre;
font-family: monospace;
}
<p>a b c</p>
You can try to put
between them. Like this:
<p>a b c</p>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With