How do I scale two images simultaneously?

I know how to scale single images with the code below. It works brilliantly.

height:auto;
width:auto;
max-width:100%;

However what if I needed to scale 2 images that were sitting next to each other? In that case I need to add a float:left to both images which in my experiments screwed up everything. I got weird results and nothing worked right.

Ultimately I combined multiple images into 1 image and used the old code. But sometimes that isn't possible.

Syndicate content