Suppose I have word Abhishek Mane I want to make this as follows Abhishek_____________________________ Mane. Underscore(_) indicates spaces that i want
Asked
Active
Viewed 312 times
-3
-
3Does this answer your question? [How to stop Browser from replacing multiple space by single space?](https://stackoverflow.com/questions/36259826/how-to-stop-browser-from-replacing-multiple-space-by-single-space) – Run_Script Jan 26 '20 at 15:17
4 Answers
1
There are three different ways to achieve this:
1. Margins
You could put each word into its own span
, and then give the first word a margin-right
to add some space between the two.
.first-word {
margin-right: 100px;
}
<span class="first-word">Abhishek</span> <span>Mane</span>
2. Forced spaces
Alternatively, you can force spaces using  
.
Abishnek               Mane
A very similar thing can be achieved with  
.
Abishnek Mane
3. The pre
tag
<div class="wrap">
<pre>Abhishek Mane</pre>
</div>

Run_Script
- 2,487
- 2
- 15
- 30
0
HTML doesn't support normal spaces more than one. Then you have to add
for multiple spaces. But it is bit longer
Abhishek Mane

Ritesh Khandekar
- 3,885
- 3
- 15
- 30