JSFiddle - React, Tailwind, and code Playground

by Sanjito Kurniawan

HTML

<html>
    <body>
        <div class='box'>
            <ul id='borders'>
                <li class='top'></li>
                <li class='bottom'></li>
                <li class='right'></li>
                <li class='left'></li>
            </ul>
        </div>
    </body>
</html>

CSS

body {
    background: black;
}

#borders{
    width: 50%;
    height: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25%;
    margin-left: -25%;
    outline: 1px cyan solid;
    background: rgba(0,255,255,0.2);
}

.top {
    width: 100%;
    height: 10px;
    background: url('http://puu.sh/Dy9Q') repeat center center;
    position: absolute;
    top: -5px;
}

.bottom {
    width: 100%;
    height: 10px;
    background: url('http://puu.sh/Dy9Q') repeat center center;
    position: absolute;
    top: 100%;
    margin-top: -5px;
}

.left {
    height: 100%;
    width: 9px;
    background: url('http://puu.sh/Dy9V') repeat center center;
    position: absolute;
    left: -5px;
}

.right {
    height: 100%;
    width: 9px;
    background: url('http://puu.sh/Dy9V') repeat center center;
    position: absolute;
    margin-left: 100%;
    left: -5px;
}