
Originally Posted by
Raffles
The display:inline you have there is redundant, as SPAN elements are inline elements by default.
Inline elements (like SPAN) show whitespace within them and, as IMG elements are also inline elements by default, the space between them is showing.
A solution is to use a DIV instead and to float the images. Floating will make the images have block display by default, and this will cause the whitespace between them to be ignored.
Alternatively, you could put them all in a list and then float the LI elements. This would probably be a more semantically sensible solution.
Bookmarks