Inner border over images with CSS?
You can do this without having an extra element or pseudo element: http://cssdeck.com/labs/t6nd0h9p img { outline: 1px solid white; outline-offset: -4px; } IE9&10 do not support the outline-offset property, but otherwise support is good: http://caniuse.com/#search=outline Alternate solution that doesn’t require knowing the dimensions of the image: http://cssdeck.com/labs/aajakwnl <div class=”ie-container”><img src=”http://placekitten.com/200/200″ /></div> div.ie-container { display: inline-block; … Read more