I am trying to create a border inside the image instead of the outer part of the image. I want to do this because I would like to put an alpha value on the border so that I can see the image across the border.
I tried to place the div a few pixels smaller than the image around the image, and then set "overflow: none". The border is now inside the image, but when I apply alpha to the border, nothing is visible across the border, because overflow is set to none.
On the other hand. If I do not set "overflow", the border will not be displayed.
I need something like this:

source
share