Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Bootstrap Client Testimonial Slider</title> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script> <style type="text/css"> body { font-family: "Open Sans", sans-serif; } h2 { color: #000; font-size: 26px; font-weight: 300; position: relative; margin: 0 0 50px 0; text-transform: uppercase; display: inline-block; } h2::after { content: ""; width: 50%; position: absolute; height: 4px; border-radius: 1px; background: #ff5555; left: 0; bottom: -20px; } .carousel { margin: 50px auto; } .carousel .carousel-item { color: #999; overflow: hidden; min-height: 120px; font-size: 13px; } .carousel .media { position: relative; padding: 0 0 0 20px; margin-left: 20px; } .carousel .media img { width: 75px; height: 75px; display: block; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); border: 2px solid #fff; } .carousel .testimonial { color: #fff; position: relative; background: #9b9b9b; padding: 15px; margin: 0 0 20px 20px; } .carousel .testimonial::before, .carousel .testimonial::after { content: ""; display: inline-block; position: absolute; left: 0; bottom: -20px; } .carousel .testimonial::before { width: 20px; height: 20px; background: #9b9b9b; box-shadow: inset 12px 0 13px rgba(0,0,0,0.5); } .carousel .testimonial::after { width: 0; height: 0; border: 10px solid transparent; border-bottom-color: #fff; border-left-color: #fff; } .carousel .carousel-item .row > div:first-child .testimonial { margin: 0 20px 20px 0; } .carousel .carousel-item .row > div:first-child .media { margin-left: 0; } .carousel .testimonial p { text-indent: 40px; line-height: 21px; margin: 0; } .carousel .testimonial p::before { content: "\201D"; font-family: Arial,sans-serif; color: #fff; font-weight: bold; font-size: 68px; line-height: 70px; position: absolute; left: -25px; top: 0; } .carousel .overview { padding: 3px 0 0 15px; } .carousel .overview .details { padding: 5px 0 8px; } .carousel .overview b { text-transform: uppercase; color: #ff5555; } .carousel-control-prev, .carousel-control-next { width: 30px; height: 30px; background: #666; text-shadow: none; top: 4px; } .carousel-control-prev i, .carousel-control-next i { font-size: 16px; } .carousel-control-prev { left: auto; right: 40px; } .carousel-control-next { left: auto; } .carousel-indicators { bottom: -80px; } .carousel-indicators li, .carousel-indicators li.active { width: 17px; height: 17px; border-radius: 0; margin: 1px 5px; box-sizing: border-box; } .carousel-indicators li { background: #e2e2e2; border: 4px solid #fff; } .carousel-indicators li.active { color: #fff; background: #ff5555; border: 5px double; } .star-rating li { padding: 0 2px; } .star-rating i { font-size: 14px; color: #ffdc12; } </style> </head> <body> <div class="container-lg"> <div class="row"> <div class="col-sm-12"> <div id="myCarousel" class="carousel slide" data-ride="carousel"> <h2>Customer <b>Testimonials</b></h2> <!-- 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> <!-- Wrapper for carousel items --> <div class="carousel-inner"> <div class="carousel-item active"> <div class="row"> <div class="col-sm-6"> <div class="testimonial"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu sem tempor, varius quam at, luctus dui. Mauris magna metus, dapibus nec turpis vel, semper malesuada ante.</p> </div> <div class="media"> <img src="/examples/images/clients/1.jpg" class="mr-3" alt=""> <div class="media-body"> <div class="overview"> <div class="name"><b>Paula Wilson</b></div> <div class="details">Media Analyst / SkyNet</div> <div class="star-rating"> <ul class="list-inline"> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star-o"></i></li> </ul> </div> </div> </div> </div> </div> <div class="col-sm-6"> <div class="testimonial"> <p>Vestibulum quis quam ut magna consequat faucibu. Eget mi suscipit tincidunt. Utmtc tempus dictum. Pellentesque virra. Quis quam ut magna consequat faucibus quam.</p> </div> <div class="media"> <img src="/examples/images/clients/2.jpg" class="mr-3" alt=""> <div class="media-body"> <div class="overview"> <div class="name"><b>Antonio Moreno</b></div> <div class="details">Web Developer / SoftBee</div> <div class="star-rating"> <ul class="list-inline"> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star-o"></i></li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="carousel-item"> <div class="row"> <div class="col-sm-6"> <div class="testimonial"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu sem tempor, varius quam at, luctus dui. Mauris magna metus, dapibus nec turpis vel, semper malesuada ante.</p> </div> <div class="media"> <img src="/examples/images/clients/3.jpg" class="mr-3" alt=""> <div class="media-body"> <div class="overview"> <div class="name"><b>Michael Holz</b></div> <div class="details">Web Developer / DevCorp</div> <div class="star-rating"> <ul class="list-inline"> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star-o"></i></li> </ul> </div> </div> </div> </div> </div> <div class="col-sm-6"> <div class="testimonial"> <p>Vestibulum quis quam ut magna consequat faucibu. Eget mi suscipit tincidunt. Utmtc tempus dictum. Pellentesque virra. Quis quam ut magna consequat faucibus quam.</p> </div> <div class="media"> <img src="/examples/images/clients/4.jpg" class="mr-3" alt=""> <div class="media-body"> <div class="overview"> <div class="name"><b>Mary Saveley</b></div> <div class="details">Graphic Designer / MarsMedia</div> <div class="star-rating"> <ul class="list-inline"> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star-o"></i></li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="carousel-item"> <div class="row"> <div class="col-sm-6"> <div class="testimonial"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu sem tempor, varius quam at, luctus dui. Mauris magna metus, dapibus nec turpis vel, semper malesuada ante.</p> </div> <div class="media"> <img src="/examples/images/clients/5.jpg" class="mr-3" alt=""> <div class="media-body"> <div class="overview"> <div class="name"><b>Martin Sommer</b></div> <div class="details">SEO Analyst / RealSearch</div> <div class="star-rating"> <ul class="list-inline"> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star-o"></i></li> </ul> </div> </div> </div> </div> </div> <div class="col-sm-6"> <div class="testimonial"> <p>Vestibulum quis quam ut magna consequat faucibu. Eget mi suscipit tincidunt. Utmtc tempus dictum. Pellentesque virra. Quis quam ut magna consequat faucibus quam.</p> </div> <div class="media"> <div class="media-left d-flex mr-3"> <img src="/examples/images/clients/6.jpg" alt=""> </div> <div class="media-body"> <div class="overview"> <div class="name"><b>John Williams</b></div> <div class="details">Web Designer / UniqueDesign</div> <div class="star-rating"> <ul class="list-inline"> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star"></i></li> <li class="list-inline-item"><i class="fa fa-star-o"></i></li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> <!-- Carousel controls --> <a class="carousel-control-prev" href="#myCarousel" data-slide="prev"> <i class="fa fa-chevron-left"></i> </a> <a class="carousel-control-next" href="#myCarousel" data-slide="next"> <i class="fa fa-chevron-right"></i> </a> </div> </div> </div> </div> </body> </html>