Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Character - Invisible space

I have a website called DaltonEmpire.

When a user copies "DaltonEmpire" I would like "Dalton Empire" to be added to their clipboard.

I only came to one solution; use a space, but make the letter-spacing -18px. Isn't there a neater solution, such as a HTML character for this?

My example JSFiddle and code:

span.nospace {
  letter-spacing: -18px;
}
<ol>
  <li>Dalton<b>Empire</b></li>
  <li>Dalton&zwnj;<b>Empire</b></li>
  <li>Dalton&zwj;<b>Empire</b></li>
  <li>Dalton&#8203;<b>Empire</b></li>
  <li>Dalton<span class="nospace"> </span><b>Empire</b> <i>The only one that works</i>
  </li>
</ol>
like image 786
Isaiah Avatar asked Dec 24 '13 12:12

Isaiah


1 Answers

Are you looking something like this:

HTML space: &nbsp; ?

like image 114
user3096206 Avatar answered Sep 29 '22 04:09

user3096206