I have some html that looks like this:
<span>
398
<span>comments posted in</span>
</span>
A space is rendered after 398 because there is a line-break in the html. For reasons I won’t go into, this line-break cannot be removed. Is there a way to stop a space being rendered there?
No. It is not possible using CSS. Although you can use
float, but it doesn’t work out here.But I have a crappy idea, give this CSS (Ideal Case):
But the practical case was like this:
1emor1exis the width of a space character in CSS. Hope it works! Everyone knows aboutem. So something aboutex:Demo: http://jsfiddle.net/UmdfA/