Placing images in container

Hi,i have been facing this problem from a long while of placing images in div container :sometimes image is bigger ,sometimes image is smaller it changes whole layout .if you know any article ,links,pdf ,kindly share .This would be so helpful