div with img with width and height defined, not fitting aspect-ratio code example Example: resize img to fit img { max-width:100%; height:auto; }