JSFiddle - React, Tailwind, and code Playground
HTML
<div class="row">
<div class="left">
content
</div>
<div class="right">
content
</div>
<div class="center">
<h3>content</h3>
</div>
<div class="clear"></div>
</div>
CSS
* {
box-sizing: border-box;
}
.row {
background-color: #5c5c5c;
}
.row h3{
background-color: #fff;
}
.left {
width: 25%;
float: left;
color: #fff;
padding: 0 10px 0 10px;
}
.right {
width: 25%;
float: right;
color: #fff;
padding: 0 10px 0 10px;
}
.center {
width: 50%;
float: left;
border-left: 2px solid #eaeaea;
border-right: 2px solid #eaeaea;
}
.clear {
clear: both;
}
@media (max-width: 1023px) and (min-width: 768px) {
.left {
float: left;
width: 50%;
}
.right {
float: left;
width: 50%;
}
.center {
float: none;
width: 100%;
clear: both;
}
}