I have an image that I would like to use as a div frame and background. The following code (and fiddle ) creates an unwanted white background inside a div, despite using background: transparent !important; or background: none !important; (I tried both)
Here is the image I'm using:

Here is the effect that I get:

Here is the effect I want:

Oddly enough, I can achieve the desired effect by opening the web inspector in Chrome and switching the border-image property after the page is displayed. Just turning the border-image off and on again, I get the result I want:

HTML
<div>test</div>
CSS
div { -webkit-border-image: url(http://img.ctrlv.in/img/14/10/28/544fc2d75c818.png) 30 30 round; -o-border-image: url(http://img.ctrlv.in/img/14/10/28/544fc2d75c818.png) 30 30 round; border-image: url(http://img.ctrlv.in/img/14/10/28/544fc2d75c818.png) 30 30 round; }
So, if the browser can display it, why can't I write it? :) Any help / suggestions would be great.
Pay attention . I already tried setting the image as a div background-image instead of border-image , and it also did not give the desired results (scaling the image to prevent the border from being cut off was just too much hunch, because the text content of the div is dynamic).
source share