The space is in the HTML. There are several possible solutions. From best to worst:
- Remove the actual space in the HTML (ideally your server could do this for you when the file is served, or at least your input template could be spaced appropriately) http://jsfiddle.net/AWMMT/2/
- Use
float: left
instead of display: inline-block
, but this has undesirable effects on t he height: http://jsfiddle.net/AWMMT/3/
- Set the container's
font-size
to 0 and set an appropriate font-size
for the internal elements: http://jsfiddle.net/AWMMT/4/ -- this is pretty simple, but then you can't take advantage of relative font size rules on the internal elements (percentages, em)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…