JSFiddle - React, Tailwind, and code Playground
HTML
<div id="window">
<div id="oleft"></div>
<div class="center">
<div id="ocenter"></div>
</div>
<div id="oright"></div>
</div>
CSS
#window {
width: 100%;
height: 300px;
position: fixed;
z-index: 5;
}
#oleft, #oright, #ocenter, .center {
position: absolute;
}
#oleft {
background: #0ee;
height: 88px;
width: 40%;
top: 0;
left: 0;
}
#oright {
background: #0ee;
height: 88px;
width: 40%;
top: 0;
left: 60%;
}
#ocenter {
background-color: transparent;
border-top: 88px solid transparent;
border-left: 150px solid rgb(219, 219, 219);
border-right: 150px solid rgb(219, 219, 219);
height: 0;
width: 0;
}
.center{
max-width:300px;
width:20%;
top:0;
left:40%;
}