1 reply
  1. 0
    Sancar Acunal
    ~ · 4 months ago

    1. Use pseudo-elements

    Define a class in your stylesheet like that:

    .nbsp:before {
      content:"\00a0\00a0\00a0"; /* Three spaces */
    }
    

    Add a span where you want to add multiple spaces:

    Hel<span class="nbsp"></span>lo World

    2. white-space

    Define a class:

    .spaced {
        white-space:pre;
    }

    HTML

    <span class="spaced">Big   Jump<span>

    demo: https://jsfiddle.net/ivanmalakan/0anzeL2L/8/