Jordi Flores is right. Inline (and inline-block) elements are rendered like text characters, meaning a space or a newline in the HTML code will result in a space in the rendered output. You just have to remove the formatting characters in the code to fix this.
If you want to keep your code organized, you can use HTML comments. For ex:
My span 1My span 2My span 3My span 4