JSFiddle - React, Tailwind, and code Playground
by afelixj
HTML
<div class="one">
<div class="two">
<div class="three">
</div>
</div>
</div>
CSS
.one{
width: 500px;
height: 500px;
background: url('http://www.moonlightcompanies.com/wp-content/uploads/2013/01/6973_MOONF-PomegranatesOnTree-8536-1.jpg');
background-size: cover;
background-repeat: no-repeat;
padding: 20px;
}
.two{
border-top: 20px solid blue;
border-left: 20px solid blue;
width: 350px;
height: 300px;
position: relative;
}
.two:after{
background: blue;
bottom: 0;
content: '';
height: 100%;
position: absolute;
right: 0;
width: 100px;
}
.two:before{
background: blue;
bottom: 0;
left: 0;
content: '';
height: 50px;
position: absolute;
right: 0;
width: 100%;
}
.three{
width: 200px;
height: 200px;
background: transparent;
padding: 20px;
border: 5px solid yellow;
}