Using the CSS
border-image
requires some understanding and some experiments before you get it. I read a blog post about it:
CSS3 Border-Image Explained
and based on what I read I creaded this pen. Hope it clears it for you (and me). I kindly borrowed the frame from
http://www.allposters.com/
.
Update
Try copy'n'pasting the
fun-code
in the developer toolbar console on your favourite site :-)
CSS
background-position: -{{width+100}}px -{{width+50}}px;The background position is not really part of border-image feature, I have added a formular to change it related to border-width here.
background-image: url({{img}});
border-image: url('{{frames[frame]}}') {{H1}} {{V2}} {{H2}} {{V1}} {{repHor}} {{repHor}};
border-width: {{width}}px;