Reputation: 5001
Those 2 blocks of code are the same but when they are output, they look differently. There is a gutter in between each characters on the second one?
<span>A<span>B<span>C</span></span></span>
<span>A
<span>B
<span>C</span>
</span>
</span>
http://codepen.io/vennsoh/pen/ptJwI
Upvotes: 0
Views: 52
Reputation: 526
It is because of the the inline-block 4px padding that built in your browser. the option to decline this space is to use like you do with out space between the > to < of spans
the other option is to use negative margin left in 4px to each of the element except the first one.
Upvotes: 2