added max-width, max-height and float