JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrapper">
<div class="cont">
<div class="class1">
</div>
<div class="class2"></div> </div> </div>
CSS
body, html {
height:100%;
width:100%;
}
.wrapper {
position: relative;
height: auto;
width: 90%;
z-index: 3;
}
.cont {
background-color: #Fff;
border: 1px solid #C1C1C1;
position: relative;
height: 85px;
width: 100%;
margin-bottom: 5px;
}
.class1 {
height: 85px;
width: 300px;
border: 1px solid #000;
position: relative;
display: inline;
left: 10px;
}
.class2 {
height: 85px;
width: 300px;
position: relative;
display: inline;
margin-left: 15px;
background-color: #000;
border: 1px solid #006;}