title: How do I make a div have the same width and height of its content?
body: <p>Let's say I have an <code>img</code> element inside a <code>div</code>, how do I make the <code>div</code> have the same width and height of its content using CSS?</p>