<div >
<img src="some url" />
</div>
The div height and width keeps varying. I would like to place this img in align to right and placed at center vertically. height and width of the image is fixed . How to solve it dynamically? like sometimes the div's width and height is same as img's width and height. or div's width and height is greater than img's width and height...