<div class="container">
<div class="element element-1">
<p><strong>element-1</strong></p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam, optio, repellendus, quod, incidunt nulla iusto quam sunt sequi porro repudiandae consectetur veritatis consequuntur nam repellat quae temporibus laboriosam officia modi.</p>
</div>
<div class="element element-2">
<p><strong>element-2</strong></p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam, optio, repellendus, quod, incidunt nulla iusto quam sunt sequi porro repudiandae consectetur veritatis consequuntur nam repellat quae temporibus laboriosam officia modi.</p>
</div>
</div>
body {
background-color: #F5F5F5;
color: #555;
font-size: 1.1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.container {
margin: 40px auto 0;
width: 90%;
}
.element {
padding: 30px;
margin: 30px auto;
}
.element-1 {
background-color: white;
/* fallback for browsers that don't support border images */
border: 10px solid grey;
-webkit-border-image: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/border-image/frame.png) 20 / 30px / 0 repeat;
-o-border-image: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/border-image/frame.png) 20 / 30px / 0 repeat;
border-image: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/border-image/frame.png) 20 / 30px / 0 repeat;
}
.element-2 {
/* fallback for browsers that don't support border images */
border: double orange 1em;
-webkit-border-image: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/border-image/frame-2.png) 27 round stretch;
-o-border-image: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/border-image/frame-2.png) 27 round stretch;
border-image: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/border-image/frame-2.png) 27 round stretch;
}