JSFiddle - React, Tailwind, and code Playground

by Al Kasih

HTML

<div id="container">
    
    <div id="left">left</div>
    <div id="midleBody">The content of the midle body</div>
    <div id="right">right</div>
    
</div>

CSS

#container {
    width:100%;
    overflow:hidden;
    display:block; 
    background:#000; 
    height:400px; 
    margin:auto;
}

#left {
    width:60px;
    overflow:hidden;
    display:block;
    background:rgba(204, 204, 204, 0.5); 
    height:200px;
    float:left; 
    clear:none; 
    position:relative; 
    z-index:2;}

#right {
    width:60px;
    overflow:hidden;
    display:block;
    background:rgba(204, 204, 204, 0.5); 
    height:200px;
    float:left; 
    clear:none;
    margin-left:-60px;
    position:relative;
    z-index:2;}

#midleBody {
    width:80%;
    overflow:hidden;
    display:block;
    background:#CFC;
    height:200px;
    float:left; 
    clear:none; 
    margin-left:-60px; 
    position:relative; 
    z-index:1;
}