Yes, those styles work. <img> is an exception to the rule. It is technically an inline element, but it behaves more like an inline-block element in many browsers.

I withdraw my solution.

Quote Originally Posted by coothead View Post

This is not true.


img {
    border: 0.5em solid #000;
I would suggest the you test the above code.
It will confirm my assertion.