JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js"></script>
<div class="sp-wrapper">
<div class="sp-carousel">
<div class="cardmain">
<div class="card">
<div class="card-header">
<img src="http://via.placeholder.com/369x385?text=dr-samim">
</div><a href="dr.html">
<div class="card-body">
<div class="card-content-sp">
<div class="card-title">DR SARKAR MAHBUB AHMED SAMIM</div><hr><h5>Consultant & Co-Ordinator</h5>
<div class="card-text">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to.</p>
</div>
</div>
</div></a>
</div>
</div>
<div class="cardmain">
<div class="card">
<div class="card-header">
<img src="http://via.placeholder.com/369x385?text=dr-2">
</div><a href="dr.html">
<div class="card-body">
<div class="card-content-sp">
<div class="card-title">DR SARKAR MAHBUB AHMED SAMIM</div><hr><h5>Consultant & Co-Ordinator</h5>
<div class="card-text">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to.</p>
...
CSS
/* Specialist card details start */
.sp-wrapper {
width: 100%;
padding: 1%;
}
.sp-carousel {
width: 90%;
height: 90%;
margin: 0px auto;
}
.cardmain {
margin: 10px;
}
.cardmain hr {
width: 100%;
background-color: #ADADAD;
opcaity: 0.1;
margin: 2px;
}
.slick-slide img {
width: 369px;
height: 385px;
}
.slick-prev,
.slick-next {
background: #000;
border-radius: 15px;
border-color: transparent;
}
.card {
border: 2px solid #fff;
box-shadow: 1px 1px 15px #ccc;
}
.card-header {
padding: 0;
}
.card-header img {
width: 100%;
}
.card-body {
background: #fff;
width: 100%;
vertical-align: top;
padding: 10px;
}
.card-content-sp {
background: #fff;
}
.card-content-sp h5 {
color: #000000;
font-weight: 400;
font-size: 18px;
line-height: 1.3em;
margin-top: -1px;
margin-bottom: 5px;
padding: 0;
}
.card-title {
color: #000000;
font-weight: 500;
font-size: 18px;
line-height: 1.3em;
margin-top: 0;
margin-bottom: 0px;
padding: 0px;
}
.card-text {
color: #747373;
font-size: 14px;
font-weight: 400;
font-size: 1em;
line-height: 1.5;
margin: 0px;
margin-bottom: 10px;
padding: 0;
font-family: Roboto-Thin;
height: 145px;
overflow: auto;
}
/* Specialist card details End */
JavaScript
jQuery(document).ready(function ($) {
$('.sp-carousel').slick({
dots: false,
arrows: true,
infinite: true,
speed: 300,
autoplay: true,
autoplaySpeed: 2000,
slidesToShow: 3,
slidesToScroll: 1,
prevArrow: '<button class="slide-arrow prev-arrow"></button>',
nextArrow: '<button class="slide-arrow next-arrow"></button>'
});
});