JSFiddle - React, Tailwind, and code Playground
by fgnass
HTML
<div id="content">
<p>
The cutout should allow part of
this content to show through
as if you were looking through a window.
</p>
</div>
<div id="wrapper">
<div id="cutout"></div>
</div>
CSS
#content {
background: #0f0;
margin: 0 auto;
width: 200px;
}
#cutout {
position: absolute;
z-index:2;
border: 1px solid red;
width: 100px;
height: 100px;
background: transparent;
top: 0;
left: 30%;
border:400px solid rgba(0, 0, 0, 0.7) ;
border-top:0;
left: -15%;
}