"Thumbnail popup with TB modal"
Bootstrap 3.1.0 Snippet by mrmccormack

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="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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 ---------->
<!-- Sample by Mr. M. - Confederation College - IMD Program -->
<div class="container">
<div class="row">
<h2>Mr. M.'s Thumbnail popup using Twitter Bootstrap Modal</h2>
<p>
<span class="label label-danger">TIP</span>
<p>
<a href="http://bootsnipp.com/iframe/6epP" target="_blank"><span class="glyphicon glyphicon-eye-open"></span>
View in separate window</a>
</p>
<br>
<hr>
<!-- Thumbnail link -->
<a href="#" data-toggle="modal" data-target=".bs-example-modal-lg">
<img src="http://i.imgur.com/YZ7AGyF.jpg" width="150" class="img-responsive img-rounded center-block" alt="">
</a>
<hr>
<small>
Creative Commons image: <a href="http://tinyurl.com/flickrmixer">Desmond Talkington </a>
<br>
<a href="http://tinyurl.com/tbvalid3" target="_blank">HTML 5 Valid</a>
</small>
<hr>
<!-- Modal content for the above example -->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: