"Thumbnails (2) popups with TB modals"
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">
<h3>Mr. M.'s Two Thumbnail popups using Twitter Bootstrap Modal</h3>
<p>
<span class="label label-danger">Thumbnail TIP</span>
<br>
<ul>
<li>Sometimes thumbnails are <strong>not</strong> just the same image shrunk down.
Try cropping out an interesting part of the larger image, and shrink that image down for the thumb. The mixer is just a shrunk thumbnail of entire image.
The lion is an example of a "crppped" thumbnail. <a href="http://bootsnipp.com/iframe/8ObW" target="_blank"><span class="glyphicon glyphicon-eye-open"></span>
View in separate window</a></li>
<li>TIP: Name your files mixer.jpg and mixer_t.jpg for easy programming. As you add more thumbs, make sure classes and id's are unique as shown in this example.</li>
</ul>
<hr>
<!--
Thumbnail link for mixer image
NOTE: data-target is .pop-up-1 for mixer, and .pop-up-2 for lion, these
classes must be unique
-->
<a href="#" data-toggle="modal" data-target=".pop-up-1">
<img src="http://i.imgur.com/YZ7AGyF.jpg" width="150" class="img-responsive img-rounded center-block" alt="">
</a>
<hr>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

thanks nice info, Bandar Bola Terpercaya di indonesia, mantap

Bandar Sport () - 9 years ago - Reply 0


Thank you very much

Keith () - 10 years ago - Reply 0


Do the snippets work on any bootstrap java script?

Sajjad Ahmad () - 10 years ago - Reply 0


The version of Bootstrap is specified in the snippet description, I would recommend you use the specified version to make sure it would work.

maxsurguy () - 10 years ago - Reply 0