"Modal with Image and Comments"
Bootstrap 3.3.0 Snippet by lookbadgers

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">
<h2>Modal with Image and Comments</h2>
</div>
<img class="thumbnail" src="http://lorempixel.com/100/100/" data-toggle="modal" data-target="#myModal" />
<img class="thumbnail" src="http://lorempixel.com/100/100/" data-toggle="modal" data-target="#myModal2" />
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content modal-image">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Image title</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<img src="http://lorempixel.com/400/200/" class="img-responsive center-block" />
<a href="#carousel-example-generic" class="left carousel-control" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a href="#carousel-example-generic" class="right carousel-control" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="col-md-12">
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.modal-image .modal-body {
padding-top: 0;
padding-bottom: 0;
}
.modal-image .modal-body .modal-img{
margin: 0 -15px;
}
.modal-image .modal-body .list-group {
margin: 0px -15px;
}
.modal-image .modal-body .list-group .list-group-item {
background-color: transparent;
}
.modal-image .modal-body .list-group .list-group-item:first-child {
border-radius:0;
}
.modal-image .modal-body .list-group .list-group-item:last-child {
border: 0 none;
border-radius: 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: