I have this problem when I want to have a border and a shadow, but the shadow should be above the border.
The box-shadow property starts when the border ends, is it possible to move it along the border?
.border
{
border: solid rgba(128,42,42,.98) 16px;
}
.img-box-shadow
{
-moz-box-shadow: 0px 0px 20px #000000;
-webkit-box-shadow: 0px 0px 20px #000000;
box-shadow: 0px 0px 20px #000000;
}
My HTML:
<img class="border img-box-shadow" src="img.png">
Already tried to paste into my shadow, but it did not work!
I am looking for this effect:

And I get this result:

source
share