x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
5
6
<style>
7
body {
8
padding-top: 1em;
9
}   
10
</style> <div class="container-fluid">
11
        
12
<div class="btn-group btn-group-sm" role="group">
13
<button type="button" class="btn btn-primary">Small</button>
14
<button type="button" class="btn btn-primary">Small</button>
15
<button type="button" class="btn btn-primary">Small</button>
16
</div>
17
18
<div class="btn-group" role="group">
19
<button type="button" class="btn btn-primary">Default size</button>
20
<button type="button" class="btn btn-primary">Default size</button>
21
<button type="button" class="btn btn-primary">Default size</button>
22
</div>
23
24
<div class="btn-group btn-group-lg" role="group">
25
<button type="button" class="btn btn-primary">Large</button>
26
<button type="button" class="btn btn-primary">Large</button>
27
<button type="button" class="btn btn-primary">Large</button>
28
</div>
29
30
<style>
31
div {margin:10px;}
32
</style>
33
34
</div>
35
        
36
<!-- Bundled -->
37
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>