I'm searching for a way to add a border triangle (with transparent tips) with an img html tag. It's work with a div but not with an image tag.
http://jsfiddle.net/hyH48/2131/
.mybox {
width:200px;
height:100px;
position:relative;
border: 5px solid red;
}
.mybox:after, .mybox:before {
top: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.mybox:after {
border-color: rgba(136, 183, 213, 0);
border-top-color: red;
border-width: 30px;
margin-left: -30px;
}
.mybox:before {
border-color: rgba(194, 225, 245, 0);
border-top-color: red;
border-width: 36px;
margin-left: -36px;
}