When two elements with display: inline-block
are sitting next to each other, whitespace between becomes a space character.
Solutions, in decreasing order of awesomeness:
inline-block
. Use floating elements instead (don't forget to clear them!).font-size: 0
. Unfortunately this has issues on iOS devices.