Reputation: 520
I am trying to use this image as a border around a div.
I want it to stretch around the div like a rubber band. This is the CSS I am using.
div#divname {
border-image: url('red-border-box.png') 30 30 30 30;
behavior: url('/wp-content/uploads/scripts/PIE.php');
}
It works in IE 11 and the latest Chrome and Firefox. I tried using CSS3 Pie for IE 10, but there's no effect.
Is there an alternative approach I can use for IE 10?
Upvotes: 1
Views: 919
Reputation: 9583
Border-image
is not supported by IE. You may need to try something like this: JS Fiddle
div {
background: url('https://i.sstatic.net/SsCre.png') no-repeat;
background-size: 100% 100%;
padding: 10px;
padding-left: 20px;
width: 300px;
}
Upvotes: 3