JSFiddle - React, Tailwind, and code Playground
by mkurzweil
HTML
<script src="//code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="container-fluid">
<div class="no-margin row">
<div class="item-1 col-md"></div>
<div class="item-2 col-md">
<div class="item-3 col-md"></div>
<div class="item-4 row">
<div class="item-5 col-md"></div>
<div class="item-6 col-md"></div>
</div>
</div>
</div>
</div>
CSS
body {
padding: 15px;
}
.item-1 {
height: 600px;
background: blue;
}
.item-2 {
height: 600px;
padding-right: 0;
/* container right */
background-color: white;
}
.item-3 {
height: 292.5px;
margin-bottom: 7.5px;
background-color: green;
}
.item-4 {
padding: 0 15px;
}
.item-5 {
height: 292.5px;
margin-top: 7.5px;
border-right: 7.5px solid white;
background-color: purple;
}
.item-6 {
height: 292.5px;
margin-top: 7.5px;
border-left: 7.5px solid white;
background-color: yellow;
}
/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
.item-2 {
padding: 0 !important;
margin: 0;
height: auto;
}
.item-3,
.item-5,
.item-6 {
border: 0;
padding: 0;
margin: 0;
height: 300px;
}
/* To prevent responsiveness issue, caused by .row bootstrap class */
.no-margin {
margin: 0;
}
}