Bootstrap 4 Carousel Slider With Thumbnails

Bootstrap 4 carousel slider with thumbnails and the main feature is that this carousel slider is designed with two columns. Here we can show the feature images as a thumbnail with the content.

Add HTML

<!DOCTYPE html>
<html lang="en">
   <head>
      <title>How To Create Bootstrap 4 Carousel Slider With Thumbnails</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.10.2/css/all.css">
      <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
      <!-- Bootstrap 4 JS CDN Links -->
      <script src="https://code.jquery.com/jquery-3.5.1.slim.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>
   </head>
   <body>
      <div class="post-slider text-white">
         <div class="container">
            <div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
            	<!-- Carousel Slide Indicators Navigation -->
               <ol class="carousel-indicators">
                  <li data-target="#carouselExampleCaptions" data-slide-to="0" class="active"></li>
                  <li data-target="#carouselExampleCaptions" data-slide-to="1"></li>
                  <li data-target="#carouselExampleCaptions" data-slide-to="2"></li>
               </ol>
               <div class="carousel-inner">
                  <div class="carousel-item active">
                     <div class="row">
                        <div class="col-md-6">
                           <img src="images/image-one.jpg" class="img-fluid" alt="">
                        </div>
                        <div class="col-md-6">
                           <h3>Why do we use it?</h3>
                           <div class="price">
                              <p>Prices: <span>$159</span></p>
                           </div>
                           <p class="font-italic">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout</p>
                           <ul>
                              <li><i class="fas fa-arrow-right"></i> The standard Lorem Ipsum passage, used since the 1500s</li>
                              <li><i class="fas fa-arrow-right"></i> 1914 translation by H. Rackham</li>
                              <li><i class="fas fa-arrow-right"></i> Section 1.10.33 of "de Finibus Bonorum et Malorum"</li>
                           </ul>
                           <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</p>
                        </div>
                     </div>
                  </div>
                  <div class="carousel-item">
                     <div class="row">
                        <div class="col-md-6">
                           <img src="images/image-two.jpg" class="img-fluid" alt="">
                        </div>
                        <div class="col-md-6">
                           <h3>What is Lorem Ipsum?</h3>
                           <div class="price">
                              <p>Prices: <span>$169</span></p>
                           </div>
                           <p class="font-italic">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout</p>
                           <ul>
                              <li><i class="fas fa-arrow-right"></i> The standard Lorem Ipsum passage, used since the 1500s</li>
                              <li><i class="fas fa-arrow-right"></i> 1914 translation by H. Rackham</li>
                              <li><i class="fas fa-arrow-right"></i> Section 1.10.33 of "de Finibus Bonorum et Malorum"</li>
                           </ul>
                           <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</p>
                        </div>
                     </div>
                  </div>
                  <div class="carousel-item">
                     <div class="row">
                        <div class="col-md-6">
                           <img src="images/image-three.jpg" class="img-fluid" alt="">
                        </div>
                        <div class="col-md-6">
                           <h3>Where can I get some?</h3>
                           <div class="price">
                              <p>Prices: <span>$179</span></p>
                           </div>
                           <p class="font-italic">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout</p>
                           <ul>
                              <li><i class="fas fa-arrow-right"></i> The standard Lorem Ipsum passage, used since the 1500s</li>
                              <li><i class="fas fa-arrow-right"></i> 1914 translation by H. Rackham</li>
                              <li><i class="fas fa-arrow-right"></i> Section 1.10.33 of "de Finibus Bonorum et Malorum"</li>
                           </ul>
                           <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</p>
                        </div>
                     </div>
                  </div>
               </div>
               <!-- Next and Pre arrow icons -->
               <a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
               <span class="carousel-control-prev-icon" aria-hidden="true"></span>
               <span class="sr-only">Previous</span>
               </a>
               <a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
               <span class="carousel-control-next-icon" aria-hidden="true"></span>
               <span class="sr-only">Next</span>
               </a>
            </div>
         </div>
      </div>
   </body>
</html>

Add CSS

<style>
.post-slider {
	padding: 80px 0px 100px;
	background-color: #673AB7;
}
.post-slider .carousel-control-next, .carousel-control-prev {
	width: auto;
	top: 50%;
	bottom: initial;
}
.post-slider .carousel-control-prev {
	left: -40px;
}
.post-slider .carousel-control-next {
	right: -40px;
}
.post-slider .carousel-indicators {
	bottom: -70px;
}
.post-slider img {
	border-radius: 10px;
	border: 3px solid #ffffff;
}
.post-slider h3 {
	font-weight: 600;
	font-size: 28px;
	color: #FFEB3B;
	border-bottom: 2px solid #b39cdb;
	padding-bottom: 20px;
	margin-bottom: 20px;
	margin-top: 10px;
}
.post-slider .price {
	font-size: 20px;
	position: absolute;
	right: 20px;
	top: 12px;
}
.post-slider ul {
	list-style: none;
	padding: 0;
}
.post-slider ul li {
	padding-bottom: 10px;
}
.post-slider ul i {
	font-size: 18px;
	margin-right: 5px;
	color: #FFEB3B;
}
/*-- Responsive CSS --*/
@media (max-width: 767px) {
	.post-slider .carousel-control-prev {
		left: 0px;
	}
	.post-slider .carousel-control-next {
		right: 0px;
	}
	.post-slider h3 {
		font-size: 22px;
	}
	.post-slider .price {
		font-size: 18px;
		top: 12px;
	}
}
</style>

Leave a Comment