I want to create image with the border in opposite corners (using :: after
and :: before
). I almost got it, BUT the image doesn't cover the whole space in the div. Below the image there is some empty space (marked red in jsfiddle), and I don't understand what is the reason. The most important thing is that the image's height change the width. Could you explain me what I did wrong? :)
This is my code: https://jsfiddle.net/ndy79hvo/1/