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> <div class="container-fluid">
12
        
13
<div class="input-group input-group-sm mb-3">
14
  <div class="input-group-prepend">
15
    <span class="input-group-text">Small</span>
16
  </div>
17
  <input type="text" class="form-control" placeholder="1000" aria-label="Amount (rounded to the nearest dollar)" aria-describedby="basic-addon">
18
</div>
19
<div class="input-group mb-3">
20
  <div class="input-group-prepend">
21
    <span class="input-group-text">Medium</span>
22
  </div>
23
  <input type="text" class="form-control" placeholder="1000" aria-label="Amount (rounded to the nearest dollar)" aria-describedby="basic-addon">
24
</div>
25
<div class="input-group input-group-lg mb-3">
26
  <div class="input-group-prepend">
27
    <span class="input-group-text">Large</span>
28
  </div>
29
  <input type="text" class="form-control" placeholder="1000" aria-label="Amount (rounded to the nearest dollar)" aria-describedby="basic-addon">
30
</div>
31
32
</div>
33
        
34
<!-- jQuery library -->
35
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
36
37
<!-- Popper -->
38
<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>
39
40
<!-- Latest compiled and minified Bootstrap JavaScript -->
41
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
42
43
<!-- Initialize Bootstrap functionality -->
44
<script>
45
// Initialize tooltip component
46
$(function () {
47
  $('[data-toggle="tooltip"]').tooltip()
48
})
49
50
// Initialize popover component
51
$(function () {
52
  $('[data-toggle="popover"]').popover()
53
})
54
</script>