I have used font-size: 0; on the parent element and that’s how I got the links to have no spaces but the space is still there in Firefox.
Please test this in Firefox and then any other browser and you’ll see that Firefox is showing a space (albeit 1px) between the links where as no other browser is doing this… well IE6&7 but lets not talk about them…
Does anyone know why? And how I could go about and solving it without using javascript to determine the browser?
The reason why this is happening is because there is a text-node with a line-break in between the a-tags. And since you have set
letter-spacing: 1px;and the firefox coders have chosen to implement letter-spacing the way they have, you get 1px of letter spacing after or before that textnode.The solution, as already hinted at elsewhere, is to change the rule for
div#navigationto not have the lineletter-spacing: 1pxin it, like this:You can see a working version with the fix applied here: http://jsfiddle.net/uZMzA/10/