x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<!-- Latest compiled and minified Bootstrap CSS -->
5
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
6
7
<style>
8
body {
9
padding-top: 1em;
10
}   
11
</style> 
12
<div class="container">
13
    Example of a fixed width container which is set using the <code>.container</code> class.
14
</div>
15
16
<!-- Styles (so that we can see the grid) -->
17
<style scoped>
18
.container {
19
    background: yellowgreen;
20
    text-align: center;
21
    padding-top: 150px;
22
    padding-bottom: 150px;
23
    }
24
</style>
25
26
<!-- jQuery library -->
27
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
28
29
<!-- Popper -->
30
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
31
32
<!-- Latest compiled and minified Bootstrap JavaScript -->
33
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
34
35
<!-- Initialize Bootstrap functionality -->
36
<script>
37
// Initialize tooltip component
38
$(function () {
39
  $('[data-toggle="tooltip"]').tooltip()
40
})
41
42
// Initialize popover component
43
$(function () {
44
  $('[data-toggle="popover"]').popover()
45
})
46
</script>