title: How to put an image in div with CSS?
body: <p>I would like to have all my images in CSS (the only way I know how is to put them in as background images).</p>
  
  <p>But the problem in this solution is you can never let the div take the size of the image.</p>
  
  <p>So my question is: what is the best way to have the equivalent of 
  <code>&lt;div&gt;&lt;img src="..." /&gt;&lt;/div&gt;</code> in CSS?</p>