Offset a border over an image

Viewed 8590

I'm trying to create exactly like what is shown in the picture below. I have tried other methods using outline and offset method too but I could't figure out how to go on about doing this.

image with an offset border

Here's the JSFiddle:

img {
  border: 4px solid green;
}
<img src="https://image.ibb.co/cxwWPa/services_gas_oil.jpg" alt="services_gas_oil" border="0">

How do I do to get this offset border over the image?

3 Answers
Related