Here is an example: http://jsfiddle.net/7zhLm/5/
The image inside is larger than the div supports.
Therefore it is cropping the rest (overflow-x: hidden).
I am trying to create a white border around the image, but it doesn’t seem to work.
After checking what’s going on there with dev tool I saw that the lower part overlays the white border.
How to I fix that?
I see you’re using both
overflow-xandoverflow-y. You can just useoverflow:hidden;as it works on any browser while-xand-yare not supported by older ones.Anyway, to avoid it you can add another
<div>. Check the live demo, and here is the updated code: