+ 7
How to add spaces in HTML?
Letâs say I want to show something is a paragraph and I will write: Hello. But it will put out: Hello. How can I make the spaces count?
10 Respostas
+ 9
& nbsp; = single non-breaking space
& ensp; = double space
& emsp; = quad space
<pre></pre> = HTML tags for preformatted text. Should keep your spacing.
padding-left: = CSS means of adding padding, giving you space/indentation.
+ 20
+ 7
thanks for information @Jakob Marley
+ 4
Thanks guys! đ
+ 3
or use the <pre> tag,it respects spaces
+ 3
Thanks so much everyone!
+ 2
when writing html,spaces more than 2 are ignored.The solutions to this?
moving the elements itself with css.
+ 2
@Nia Alavandi
Iâm sorry, but I donât know ruby. You can try posting your own question though. Youâre bound to get some help.
@Brains
I have not completed the CSS course. Will it teach me how in it?
+ 2
You can use the entity  :
<p> Hello </p>
If you only want one word to be centered you can play with CSS and the classes. For example, you could use a span tag in this case and adjust the left margin as you like (recommended):
<p> <span class = "has-margin-left"> Hello </span> </p>
CSS:
.has-margin-left {
margin-left: 15px;
}
- 1
hi Jax im new can u plz help with the ruby tutorial i just started and my name is nia.