"Multiple Modal Based Carousels"
Bootstrap 3.3.0 Snippet by jayfive

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<!--Start First Column-->
<div class="col-md-4 no-image"><!--Delete the no-image class from your code, all css in this example is merely to beautify the results on this page, and is not required for the modal carousels to work-->
<!-- The size of your images determines the size of the modal, set them to whatever you like-->
<button class="btn btn-block btn-info" data-toggle="modal" data-target=".firstModal">click me</button><!--Note the data-toggle and data-target name-->
</div>
<div class="modal fade firstModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"><!--This class matches the button target-->
<div class="modal-dialog modal-lg"><!--This will also affect your modal size, look into it-->
<div class="modal-content">
<div id="carousel-controls" class="carousel slide" data-ride="carousel"><!--This calls the controls for the carousel, note the id-->
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img class="img-responsive" src="http://placehold.it/1200x600/555/000&text=First-Slide" alt="...">
<div class="carousel-caption">
insert a caption for your images here, if you want
</div>
</div>
<div class="item">
<img class="img-responsive" src="http://placehold.it/1200x600/ffb8bb/000&text=Second-Slide" alt="...">
</div>
<div class="item">
<img class="img-responsive" src="http://placehold.it/1200x600/ccc033/000&text=Third-Slide" alt="...">
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-controls" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
.no-image {
padding-top: 300px;
}
.align{
padding-top:25px;
}
.third-btn{
margin-top:25px;
}
.dark-text{
color:#000;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: