JSFiddle - React, Tailwind, and code Playground
HTML
<div style="display: table;">
<div class="tr">
<a class="tc side" target="_blank" href="#">
<h3>test test test test test test test test test test test test test </h3>
</a>
<div class="tc verticalLine">
</div>
<div class="tc side"></div>
</div>
<div class="tr">
<div class="tc side"></div>
<div class="tc verticalLine">
</div>
<a class="tc side" target="_blank" href="#">
<h3>test test test test test test test test test test test test test </h3>
</a>
</div>
</div>
CSS
.side {
width: 45%;
}
.verticalLine:before {
content: "";
display: block;
position: absolute;
border-left: 0.13em solid #90A4AE;
border-right: 0.13em solid #90A4AE;
height: 100%;
width: 16%;
margin-left: 42%;
box-sizing: border-box;
}
.verticalLine {
position: relative;
width: 10%;
}
.tr {
display: table-row;
}
.tc {
display: table-cell;
}
.year {
text-align: center;
color: #607D8B;
}
/* Media Queries */
@media only screen and (max-width: 768px) {
header h1 {
font-size: 3rem;
}
.tr > div.side {
display: none;
}
.tr > div.verticalLine {
float: right;
}
.tr > div.year {
float: right;
}
.tr > a {
float: left;
}
.side {
width: 90%;
}
}