The spaces come from the line-breaks (well-known from the display:inline-block
problematic).
So make your a
elements display: block
and float them to the left.
PS: The display:block
is "redundant", as float
normally already sets the display property of the respective element to "block". But it do no harm ...!