I needed to create an image sprite using ten 16px square transparent PNG files. So I put together a simple HTML page with my 10 images inside a div with a background colour. I added some simple CSS to make the div fit the content and remove padding, margins etc.
In Firefox using Firebug I examined the width of the div and found it to measure 196 x 21 pixels. I can clearly see white space between the images. As far as I could tell I have no margins, padding or borders.
If instead I float the images inside the div then I get a measurement of 160 x 16 pixels (which is what I expected originally).
I have also looked at this page in Chrome and IE and get identical results. So I imagine the behaviour must be described in the standards somewhere?
I'm curious as to where the additional white space around the image originates?
(Apologies if this has been answered elsewhere)