when you use inline-blocks
, to remove the margin just apply word-spacing: -3px;
and letter-spacing: -3px;
to the parent container and then revert these rules on inline-block elements with word-spacing: normal;
and letter-spacing: normal;
e.g. with this basic markup
<div>
<span>...</span>
<span>...</span>
<span>...</span>
</div>
the minimal CSS code is
div {
word-spacing: -3px;
letter-spacing: -3px;
}
span {
word-spacing: normal;
letter-spacing: normal;
display: inline-block;
}
Another possibility (that I don't recommend but it could useful for you to know, anyway) is to set font-size: 0;
to the parent container.