JSFiddle - React, Tailwind, and code Playground
by Khalil Zhang
HTML
<div class="container">
<div class="absolute">
<div class="section"></div>
</div>
<div class="normal">
<div class="l"></div>
<div class="l1"></div>
</div>
</div>
CSS
.container {
width:400px;
height:400px;
margin:0 auto;
position:relative;
border:1px solid red;
}
.section {
float: left;
width: 59px;
text-align: center;
color: rgba(250, 250, 250, 0.8);
font-family:"Signika Negative";
font-size: 13px;
line-height: 24px;
font-weight: lighter;
border-left: 1px dashed rgba(250, 250, 250, 0.2);
height: 100%;
}
.absolute {
position:absolute;
left:0;
top:0;
height:100%;
background:black;
}
.normal {
width:300px;
height:200px;
overflow:hidden;
}
.l {
width:300px;
height:200px;
background:yellow;
float:left;
}
.l1 {
width:350px;
height:200px;
background:gray;
float:left;
}