I have a listing with images. The height of the images is unknown. What would be the best properties for the div. I have tried several things (overflow: hidden) but it won't show the images. This is what I have in the CSS:

Code:
.boxgrid {
 width: 150px;
 position:absolute;
 top:0;
 left:0;
 right:0;
 display: inline-block;
 margin: auto;
 overflow: hidden;
 background:#161613; 
}

.boxgrid img {
  max-width: 100%;
  height: auto;
  position: absolute; 
  top: 0; 
  left: 0; 
  border: 0; 
}
What am I doing wrong?