JSFiddle - React, Tailwind, and code Playground
by Roshan Karunarathna
HTML
<script src="https://code.jquery.com/jquery-3.4.1.slim.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">
<div class="col-xs-12 col-sm-12 col-md-12 five_reasons_sec">
<div class="row">
<div class="container">
<div class="content">
<div class="round_logo">
<div class="title">5 Reasons Our <br>
Patients <br>
Trust Cannvalate</div>
<a href="https://cannvalate.as.me/eligibility-consult" target="_blank" class="book_now">Free Consult</a>
</div>
<div class="row_box1">
<div class="icon"></div>
<div class="had">Experienced</div>
<div class="sub_text">Cannvalate have proudly obtained more application approvals than most...</div>
</div>
<div class="row_box2">
<div class="icon"></div>
<div class="had">Fast Turnaround</div>
<div class="sub_text">We usually obtain TGA approvals within 24 hours after your doctor consult, provided we have...</div>
</div>
<div class="row_box3">
<div class="icon"></div>
<div class="had">Cost Effective</div>
<div class="sub_text">Cannvalate consultations are amongst the most cost effective in Australia...</div>
</div>
<div class="row_box4">
<div class="icon"></div>
<div class="had">Reliable</div>
<div class="sub_text">Cannvalate has over a dozen of Australia’s...
CSS
.five_reasons_sec .content {
position: relative;
float: left;
width: 100%;
}
.five_reasons_sec .content .round_logo {
display: inline-block;
width: 432px;
min-height: 442px;
margin-left: 30%;
margin-right: 30%;
padding: 120px 50px;
background: url(../images/round_logo.png) center center no-repeat;
background-size: cover;
text-align: center;
}
.five_reasons_sec .content .round_logo .title {
display: inline-block;
width: 100%;
padding-bottom: 20px;
font-size: 35px;
color: #333333;
line-height: 45px;
font-weight: 700;
text-align: center;
}
.five_reasons_sec .content .round_logo .book_now {
display: inline-block;
padding: 12px 32px;
background: #f26a1b;
border-radius: 50px;
font-size: 17px;
color: #ffffff;
font-weight: 700;
text-transform: uppercase;
text-decoration: none;
text-align: center;
transition: all .3s ease-in-out;
}
.five_reasons_sec .content .row_box1 {
position: absolute;
display: inline-block;
width: 36%;
left: 0px;
top: 0px;
cursor: pointer;
}
.five_reasons_sec .content .row_box1 .icon {
float: right;
width: 170px;
height: 117px;
background: url(../images/icon1.png) 0px 0px no-repeat;
}
.five_reasons_sec .content .row_box1 .had {
float: left;
width: 60%;
padding-bottom: 10px;
font-size: 24px;
color: #333333;
font-weight: 600;
line-height: 34px;
text-align: right;
}
.five_reasons_sec .content .row_box1 .sub_text {
float: left;
width: 60%;
font-size: 17px;
color: #868686;
font-weight: 400;
line-height: 25px;
text-align: right;
}
.five_reasons_sec .content .row_box2 {
position: absolute;
display: inline-block;
width: 38%;
right: 95px;
top: -84px;
cursor: pointer;
}
.five_reasons_sec .content .row_box2 .icon {
float: left;
width: 170px;
height: 117px;
background: url(../images/icon2.png) 0px 0px...