This is a DIV element that uses an image as a border.
This is a DIV element that uses an image as a border.
div#main {
background-color:lightgrey;
border:30px solid transparent;
border-image: url('border.png');
border-image-slice: 30;
border-image-width: 10%;
border-image-outset: 0;
border-image-repeat: round;
width:200px;
height:50px;
}