"Popover"
Bootstrap 3.3.0 Snippet by duuraine

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
<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">
<button type="button" class="first btn btn-default btn-danger" data-container="body" data-toggle="popover" data-placement="left" title="Popover Left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on left
</button>
<button type="button" class="btn btn-default btn-danger" data-container="body" data-toggle="popover" data-placement="top" title="Popover Top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on top
</button>
<button type="button" class="btn btn-default btn-danger" data-container="body" data-toggle="popover" data-placement="bottom" title="Popover Bottom" data-content="Vivamus
sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on bottom
</button>
<button type="button" class="btn btn-default btn-danger" data-container="body" data-toggle="popover" data-placement="right" title="Popover Right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on right
</button>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
button{
margin-top: 100px;
}
.first{
margin-left: 220px;
}
.popover{
box-shadow: 5px 5px 5px #888888;
}
.popover-title{
color: #0a0a0a;
font-size: 20px;
text-align: center;
background-color: #fafafa;
}
.popover-content{
color: #3a3a3a;
background-color: #ffffff;
text-align: center;
}
.btn{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
$(function () {
$('[data-toggle="popover"]').popover()
})
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: