Here i have explained how to use bootstrap carousel for testimonial.

HTML Markup

<!DOCTYPE html>
<html lang="en">
<head>
<title>Testimonial Carousel Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h1>Testimonial Carousel Example</h1>  
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<!--    <ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>-->
<div class="testmonial_block">
<!-- Wrapper for slides -->
<div class="carousel-inner">

<div class="item active">
<div class="testimonial"> 
<div><img src="images/profilepic.jpg" /> 
“I would just like to thank you and your staff for organising an unforgettable holiday. The weather was wonderful (took all the wrong clothes) with only two wet days – and one of those, there were only showe l the wrong clothes) withe of those, there were only  wonderful (took all the wrong clothes). </div>
<div><label>  Mrs B – Sheffield</label> </div>
<div class="clearfix"> </div>
</div>
</div>

<div class="item">
<div class="testimonial"> 
<div><img src="images/profilepic.jpg" /> 
“I would just like to thank you and your staff for organising an unforgettable holiday. The weather was wonderful (took all the wrong clothes) with only two wet days – and one of those, there were only showe l the wrong clothes) withe of those, there were only  wonderful (took all the wrong clothes). </div>
<div><label>  Mrs B – Sheffield</label> </div>
<div class="clearfix"> </div>
</div>  
</div>

<div class="item">
<div class="testimonial"> 
<div><img src="images/profilepic.jpg" /> 
“I would just like to thank you and your staff for organising an unforgettable holiday. The weather was wonderful (took all the wrong clothes) with only two wet days – and one of those, there were only showe l the wrong clothes) withe of those, there were only  wonderful (took all the wrong clothes). </div>
<div><label>  Mrs B – Sheffield</label> </div>
<div class="clearfix"> </div>
</div>  
</div>

</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<i class="fa fa-angle-left" aria-hidden="true"></i> 
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<i class="fa fa-angle-right" aria-hidden="true"></i> 
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</body>
</html>

Add following custom CSS with style tag in head.

CSS

.testmonial_block { background-color:#fff; border: solid 1px #c6c6c6; padding:10px; }
.testimonial { font-size: 10px; color: 939393;   margin: 10px 10% 10px 10%  }
.testimonial img { height:63px; width:63px; float:left; margin: 0px 10px 0px 0px; border-radius:50%; border:solid 5px #c6c6c6  }
.testimonial label { float:right; font-weight:bold}
.carousel-control { position: absolute; top: 34%; /* pushes the icon in the middle of the height */
z-index: 5; display: inline-block; background-image:none !important; color:Gray; filter:none !important; }
.carousel-control.left { left:0px!important; position:absolute;  } 
.carousel-control.right { right:0px!important; position:absolute;  } 

Screenshot

Add Comments