JSFiddle - React, Tailwind, and code Playground
by James
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">
<!--
Bootstrap docs: https://getbootstrap.com/docs
-->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-4">
1 of 2
</div>
<div class="col-sm-12 col-md-6 col-lg-4">
<div class="outer">
<div class="one">
<img src="https://pbs.twimg.com/profile_images/846659478120366082/K-kZVvT8_400x400.jpg" alt="">
</div>
<div class="two">
Click button
</div>
</div>
</div>
</div>
</div>
CSS
.row {
background: #f8f9fa;
margin-top: 20px;
}
.col {
border: solid 1px #6c757d;
padding: 10px;
}
*, *::before, *::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.outer {
background: #ccc;
padding: 16px;
height: 260px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
text-align: center;
margin-bottom: 1.5em;
background-size: cover;
background-position: center;
cursor: pointer;
}
.one {
background-color:#f6bc16;
font-size: 33px;
line-height: 35px;
margin: 0;
font-weight: 700;
padding: 0 10px;
text-transform: uppercase;
color: #fff;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
img {
display: block;
margin: 0 auto 8px;
max-width: 100%;
height: auto;
vertical-align: middle;
border-style: none;
}
.two {
background-color:#0f6cb6;
justify-content: center !important;
display: flex !important;
}