-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav.html
139 lines (139 loc) · 7.34 KB
/
nav.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!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">
<div class="container">
<p class="display-6 text-capitalize text-danger">basic-navbar:</p>
<p class="lead text-capitalize">using unorderlist tags , <code class="text-lowercase">class="navbar-nav",class="nav-item",class="nav-link"</code></p>
<nav> <!-- center -->
<ul class="nav bg-light">
<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>
</div>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">center:</p>
<p class="lead text-capitalize"><code>class="nav justify-content-center"</code></p>
<ul class="nav bg-light justify-content-center">
<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>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">vertical:</p>
<p class="lead text-capitalize"><code>class="nav flex-column</code></p>
<ul class="nav flex-column ">
<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>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">tabs:</p>
<p class="lead text-capitalize"><code>class="nav nav-tabs"</code></p>
<ul class="nav nav-tabs">
<li class="nav-item"><a href="#" class="nav-link active">active</a></li>
<li class="nav-item"><a href="#" class="nav-link">two</a></li>
<li class="nav-item"><a href="#" class="nav-link disabled">disabled</a></li>
</ul>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">equal width: tabs</p>
<p class="lead text-capitalize"><code>class="nav nav-tabs nav-justified"</code></p>
<ul class="nav nav-tabs nav-justified">
<li class="nav-item"><a href="#" class="nav-link active">active</a></li>
<li class="nav-item"><a href="#" class="nav-link">two</a></li>
<li class="nav-item"><a href="#" class="nav-link disabled">disabled</a></li>
</ul>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">pills or button:</p>
<p class="lead text-capitalize"><code>class="nav nav-pills"</code></p>
<ul class="nav nav-pills">
<li class="nav-item"><a href="#" class="nav-link active">one</a></li>
<li class="nav-item"><a href="#" class="nav-link">two</a></li>
<li class="nav-item"><a href="#" class="nav-link disabled">three</a></li>
</ul>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">equal width: pills</p>
<p class="lead text-capitalize"><code>class="nav nav-pills nav-justified"</code></p>
<ul class="nav nav-pills nav-justified">
<li class="nav-item"><a href="#" class="nav-link active">one</a></li>
<li class="nav-item"><a href="#" class="nav-link">two</a></li>
<li class="nav-item"><a href="#" class="nav-link disabled">three</a></li>
</ul>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">nav dropdown with pills </p>
<p class="lead text-capitalize">regular dropdown process</p>
<ul class="nav nav-pills nav-justified">
<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 dropdown-toggle active" data-bs-toggle = 'dropdown'>dropdown</a> <ul class="dropdown-menu">
<li class="dropdown-item text-capitalize ">List-1</li>
<li class="dropdown-divider"></li>
<li class="dropdown-item text-capitalize ">List-2</li>
<li class="dropdown-divider"></li>
<li class="dropdown-item text-capitalize ">List-3</li>
</ul></li>
</ul>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">nav dropdown with tabs</p>
<p class="lead text-capitalize">regular dropdown process</p>
<ul class="nav nav-tabs nav-justified">
<li class="nav-item"><a href="#" class="nav-link ">one</a></li>
<li class="nav-item"><a href="#" class="nav-link dropdown-toggle active" data-bs-toggle ="dropdown" >dropdown</a>
<ul class="dropdown-menu">
<li class="dropdown-item text-capitalize">one</li>
<li class="dropdown-divider"></li>
<li class="dropdown-item text-capitalize">two</li>
<li class="dropdown-divider"> </li>
<li class="dropdown-item text-capitalize">three </li>
</ul></li>
<li class="nav-item"><a href="#" class="nav-link">three</a></li>
</ul>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">toggles bars:</p>
<p class="lead text-capitalize">click each tab</p>
<ul class="nav nav-tabs">
<li class="nav-items"><a href="#one" data-bs-toggle = 'tab' class="nav-link active">one</a></li>
<li class="nav-items"><a href="#two" data-bs-toggle = 'tab' class="nav-link">two</a></li>
<li class="nav-items"><a href="#three" data-bs-toggle = 'tab' class="nav-link">three</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane container active text-capitalize mt-3" id="one">menu-1</div>
<div class="tab-pane container text-capitalize mt-3" id="two">menu-2</div>
<div class="tab-pane container text-capitalize mt-3" id="three">menu-3</div>
</div>
<hr>
<hr>
<p class="display-6 text-capitalize text-danger">toggles pills:</p>
<p class="lead text-capitalize">click each button</p>
<ul class="nav nav-pills">
<li class="nav-items"><a href="#four" data-bs-toggle = 'pill' class="nav-link active">four</a></li>
<li class="nav-items"><a href="#five" data-bs-toggle = 'pill' class="nav-link">five</a></li>
<li class="nav-items"><a href="#six" data-bs-toggle = 'pill' class="nav-link">six</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane container active text-capitalize mt-3" id="four">menu-4</div>
<div class="tab-pane container text-capitalize mt-3" id="five">menu-5</div>
<div class="tab-pane container text-capitalize mt-3" id="six">menu-6</div>
</div>
</div>
</body>
</html>