-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav-bar.html
109 lines (109 loc) · 4.68 KB
/
nav-bar.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>nav-bar</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container mt-5 mb-5 pb-5 ">
<p class="display-6 text-danger text-capitalize">nav-bar:basic</p>
<p class="lead">size : xxl, xl, lg, md, sm </p>
<nav class="navbar navbar-expand-sm bg-light">
<div class="container-fluid">
<ul class="navbar-nav">
<li class="nav-item"><a href="#" class="nav-link">one</a></li>
<li class="nav-item"><a href="#" class="nav-link">two</a></li>
<li class="nav-item"><a href="#" class="nav-link">three</a></li>
</ul>
</div>
</nav>
<hr>
<hr>
<p class="display-6 text-danger text-capitalize">nav-bar-vertical</p>
<p class="lead text-capitalize"> remove navbar-expand-* , in nav class</p>
<nav class="navbar bg-light">
<div class="container-fluid">
<ul class="navbar-nav">
<li class="nav-item"><a href="#" class="nav-link">one</a></li>
<li class="nav-item"><a href="#" class="nav-link">two</a></li>
<li class="nav-item"><a href="#" class="nav-link">three</a></li>
</ul>
</div>
</nav>
<hr>
<hr>
<p class="lead text-capitalize display-6 text-danger"> center:</p>
<p class="lead"> <code>class = "justify-content-center"</code></p>
<nav class="navbar navbar-expand-sm bg-light justify-content-center">
<ul class="navbar-nav">
<li class="nav-item"><a href="#" class="nav-link">one</a></li>
<li class="nav-item"><a href="#" class="nav-link">two</a></li>
<li class="nav-item"><a href="#" class="nav-link">three</a></li>
</ul>
</nav>
<hr>
<hr>
<p class="lead text-capitalize display-6 text-danger"> color: </p>
<p class="lead"><code>class="bg-primary"</code>
<ul>
<li>primary</li>
<li>secondary</li>
<li>mute</li>
<li>dark</li>
<li>light</li>
<li>info</li>
<li>success</li>
<li>warning</li>
<li>danger</li>
</ul>
</p>
<nav class="nav bg-primary navbar-expand-sm">
<ul class="navbar-nav ">
<li class="nav-item "><a href="#" class="nav-link text-dark">one</a></li>
<li class="nav-item"><a href="#" class="nav-link text-dark">two</a></li>
<li class="nav-item"><a href="#" class="nav-link text-dark">three</a></li>
</ul>
</nav>
<hr>
<hr>
<p class="display-6 text-danger text-capitalize">logo:</p>
<p class="lead text-capitalize">add logo or brand name, <code class="text-lowercase">class = "navbar-brand"</code></p>
<nav class="navbar bg-light">
<div class="container">
<a href="#" class="navbar-brand">logo</a>
</div>
</nav>
<hr>
<hr>
<p class="display-6 text-danger text-capitalize">text:</p>
<p class="lead"><code>class="navbar-text"</code></p>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<div class="container-fluid">
<span class="navbar-text">text-here</span>
</div>
</nav>
<hr>
<hr>
<p class="lead text-capitalize display-6 text-danger">dropdown in navbar:</p>
<nav class="nav text-primary bg-dark navbar-expand-sm">
<a href="#" class="navbar-brand container">logo</a>
<ul class="navbar-nav ">
<li class="nav-item "><a href="#" class="nav-link">One</a></li>
<li class="nav-item"><a href="#" class="nav-link dropdown-toggle" data-bs-toggle ='dropdown'>dropdown</a>
<ul class="dropdown-menu">
<li class="dropdown-item">list-1</li>
<li class="dropdown-item">list-2</li>
<li class="dropdown-item">list-3</li>
</ul></li>
<li class="nav-item"><a href="#" class="nav-link ">Three</a></li>
</ul>
</nav>
<hr>
<hr>
</div>
</body>
</html>