Possible Duplicate:
A Space between Inline-Block List Items
I have a JSFiddle demo of my html code. Here is the code here:
<span style="display: inline">Hello Wo</span>
<span style="display: none;"></span>
<span style="display: inline">rld</span>
The problem I’m having is that an extra space is being inserted between the ‘o’ and the ‘r’ in Hello World!. The display style is set to none, so can someone please tell me how I can get the Hello World! phrase without the space?
The linebreaks are causing it – http://jsfiddle.net/RhvjF/1/
Can’t find the particular post, but smart people suggested 3 ways of fixing it:
Comment out the line breaks, like
Set the container
font-sizeto0and re-set it forspan-sUPDATE
There are at least 2 more ways:
Break the tags, like
span { float: left }