+ 3

How to print more spaces to screen in HTML?

27th Jul 2017, 8:54 AM
School Dog
3 Respostas
+ 5
There are many ways: 1- Use <pre> tag. It shows a text in its original format. 2- Use CSS white-space property and set it to pre (white-space: pre). 3- Use &nbsp; (Non-Breaking Space).
27th Jul 2017, 9:02 AM
$machitgarha
$machitgarha - avatar
+ 3
if you want to add space between words, you can add css with a syntax like this : [selector] {white-space: pre} or if you want to set space between line, you can use css with syntax like this : [selector] {line-height: 1.5em} Note : change 1.5em as you wish change [selector] with a selector you want to stylize. Eg. if you want to stylize <p> elements. Just change the [selector] with p
27th Jul 2017, 9:22 AM
Muhammad Bagus Zulmi
Muhammad Bagus Zulmi - avatar
+ 2
use a non-breakable space &nbsp; &amp;nbsp;
27th Jul 2017, 8:57 AM
ChaoticDawg
ChaoticDawg - avatar