This is what I have:
<div style="width: 100%; background: red; text-align: center">
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/Plain-M%26Ms-Pile.jpg/280px-Plain-M%26Ms-Pile.jpg" height="170" width="170" style="border-radius:700px; border: 10px solid white;">
</div>
This is what I want:
I've tried borders, inset shadow, and many other options in CSS but none of them seem to work for my purpose.
Is there any way to make the div's background smaller than the contents WITHOUT having to specify its height?