I have a problem with the padding or margin of images. I use a lot of images on my site and they are fill a div element so that there are like 8 in a line and in the next line 8 again.
Now I always get a weird spacing between them and I cant figure out why. I tried using negative values but I don't think that is the right way. That's why I am asking here.
I tried using dispay:block but that brings the pictures all in 1 row, which I don't want. I want them to be side by side until they reach the max-width of the div.
my code looks like this:
img {
width: 50px;
height: 50px;
/* display: block; */
padding: 0;
margin: 0;
}
Here a jsfiddle to express my problem: http://jsfiddle.net/cv5Xk/