JSFiddle - React, Tailwind, and code Playground
HTML
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Testing</title>
<link rel="stylesheet" href="sample.css">
</head>
<body>
<div class="product-all-contents">
<div class="product-contents">
<div class="product">
<img id="franchise-hub" src="https://thebettersoftwarecompany.com/wp-content/uploads/2018/05/Franchise-Hub.png" alt="" width="59"
height="59" class="aligncenter size-full wp-image-7942">
<p style=" font-size: 15px;
font-family: 'Roboto';
margin-left: 7%;
margin-right: 7%;
line-height: 1.2;
color: rgb(58, 59, 60);">Franchise Hub</p>
</div>
<div class="product" style="background-color:green;border:0;">
<img id ="cloud-based-mobile" src="https://thebettersoftwarecompany.com/wp-content/uploads/2018/05/cloud-white.png" alt="" width="70"
height="50" class="aligncenter size-full wp-image-8042" />
<p style=" font-size: 15px;
font-family: 'Roboto';line-height:1.2;
color: white;">Cloud Based & Mobile</p>
</div>
<div class="product">
<img id="business-analytics" src="https://thebettersoftwarecompany.com/wp-content/uploads/2018/05/business-analytics.png" alt="" width="53"
height="53" class="aligncenter size-full wp-image-7949" />
<p style=" font-size: 15px;
font-family: 'Roboto';line-height:1.2;
color: rgb(58, 59, 60);">Business Analytics</p>
</div>
<div class="product">
<img id="tech-support" src="https://thebettersoftwarecompany.com/wp-content/uploads/2018/05/tech-support.png" alt="" width="54"
height="54" class="aligncenter size-full wp-image-7953" />
<p style=" font-size: 15px;
font-family: 'Roboto';
margin-right: 9%;
line-height: 1.2;
margin-left: 9%;
color: rgb(58, 59, 60);">Tech Support</p>
</div>
<div class="product">
<img id="order-management"...
CSS
.body
{
margin-left: auto;
margin-right: auto;
}
.product-contents
{
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
}
.product-contents .product
{
width: 10%;
text-align: center;
height: 150px;
padding-top: 1%;
padding-left: 1%;
padding-right: 1%;
border-style: solid;
border-width: 3px;
border-color: rgb(145,147,150);
background-color: white;
border-radius: 10px
}
.product-contents .product #franchise-hub
{
margin-bottom: 22%;
}
.product-contents .product #cloud-based-mobile
{
margin-bottom: 30%;
}
.product-contents .product #business-analytics
{
margin-bottom: 28%;
}
.product-contents .product #tech-support
{
margin-bottom: 27%;
}
.product-contents .product #order-management
{
margin-bottom: 27%;
}
.product-contents .product #employee-management
{
margin-bottom: 18%;
}
.product-contents .product #white-label
{
margin-bottom: 15%;
}
.product-contents .product #brand-control
{
margin-bottom: 20%;
}
.product-contents .product #lead-tracking
{
margin-bottom: 28%;
}
.product-contents .product #custom-invoicing
{
margin-bottom: 27%;
}
.product-contents .product #goal-setting
{
margin-bottom: 26%;
}
.product-contents .product #customization-tools
{
margin-bottom: 27%;
}
.product-contents .product #royalty-calculator
{
margin-bottom: 27%;
}
.product-contents .product #email-marketing
{
margin-bottom: 24%;
}
.tvs {
margin-left: 30%;
margin-right: 30%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
}
.ipads
{
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
}
.cloud-based-text
{
width: 50%;
}
.cloud-based-text-ipad
{
display: flex;
margin-left: 15%;
margin-right: 15%;
align-items: center;
background-color: #f0f0f0;
padding: 2%;
}
@media only screen and (max-width: 767px)
{
.product-all-contents
{
overflow-x: auto;
}
}