I have an image list, I want images scaled into their containers which have same size. like this:
Change the height and width to max-height and max-width. The image won't be any bigger than it's parent.
height
width
max-height
max-width
.thumbnail img { max-height: 100%; max-width: 100%; }
Updated Fiddle