Skip to content

Instantly share code, notes, and snippets.

@anchal20
Last active January 27, 2017 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anchal20/941c345d14c722c58125ac34436d2fd3 to your computer and use it in GitHub Desktop.
Save anchal20/941c345d14c722c58125ac34436d2fd3 to your computer and use it in GitHub Desktop.

Fixing space between two spans

I had wriiten a code as

<div>
  <span>AN</span>
  <span>C</span>
  <span>HAL</span>
</div>```

The end result was something like this - AN C HAL
I was wondering how to remove the unwanted space and found a magical way to do it as mentioned below:

- Instead on writing your spans in different lines, if you write these in a single line you will most likely remove this ugly space between the elements

<div>
  <span>AN</span><span>C</span><span>HAL</span>
</div>

The result will be - ANCHAL!!

HOLLA!!!
  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment