title: how to position img tag at right centre?
body: <pre><code> &lt;div &gt;
          &lt;img  src="some url"  /&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>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...</p>