How to remove the space between list items [duplicate]

This question already has an answer here:

How to you get rid of the white space between list items? I am trying to make it so that the images are right next to each other. Even though I have set the styling to margins: 0;, they are still separated.


  margin: 20px;
  width: 410px;
  height: 320px;
  background-color: grey;
  float: left;
  list-style-type: none;

ul.frames  li {
  margin: 0;
  display: inline;
  list-style: none;

ul.frames li img {
  margin: 0 0 0 0;