.imgDiv{ background-repeat: no-repeat; background-position: center; background-size: cover; }