Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Bootstrap 5 carousel with thumbnail"
Bootstrap 4.1.1 Snippet by
skjalal99
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
1.3K
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Just copy and paste this code with bootstrap 5 cdn it will not work here as bootsnipp still using 4.1.1</h2> <div class="carousel-inner"> <div class="carousel-item active"> <img src="https://placeimg.com/640/480/any" class="d-block w-100"> </div> <div class="carousel-item"> <img src="https://placeimg.com/640/480/any" class="d-block w-100"> </div> <div class="carousel-item"> <img src="https://placeimg.com/640/480/any" class="d-block w-100"> </div> <div class="carousel-item"> <img src="https://placeimg.com/640/480/any" class="d-block w-100"> </div> <div class="carousel-item"> <img src="https://placeimg.com/640/480/any" class="d-block w-100"> </div> </div> </div> <ol class="carousel-indicators"> <li data-bs-target="#carouselExampleIndicators5" data-bs-slide-to="0" class="active thumbnail"><img src="https://placeimg.com/640/480/any" class="d-block w-100"> </li> <li data-bs-target="#carouselExampleIndicators5" data-bs-slide-to="1" class="active thumbnail"><img src="https://placeimg.com/640/480/any" class="d-block w-100"></li> <li data-bs-target="#carouselExampleIndicators5" data-bs-slide-to="2" class="active thumbnail"><img src="https://placeimg.com/640/480/any" class="d-block w-100"></li> <li data-bs-target="#carouselExampleIndicators5" data-bs-slide-to="3" class="active thumbnail"><img src="https://placeimg.com/640/480/any" class="d-block w-100"></li> <li data-bs-target="#carouselExampleIndicators5" data-bs-slide-to="4" class="active thumbnail"><img src="https://placeimg.com/640/480/any" class="d-block w-100"></li> </ol> </div> </div>
.carousel-inner>.item>img, .carousel-inner>.item>a>img { display: block; height: auto; max-width: 100%; line-height: 1; margin:auto; width: 100%; } .carousel-inner > .carousel-item > img { margin: 0; max-width: 100%; max-height:350px;} .carousel-indicators li { width: 200px; height: 100%; opacity: 0.8; } .carousel-indicators { position: static; } .carousel-indicators li { width: 300px; height: 100%; opacity: 0.8; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76