Navbar
Example 1
Example 2
Example 3
1
<!-- Navbar -->
2
<nav class="navbar navbar-expand-md navbar-light bg-light">
3
<a class="navbar-brand" href="#">Navbar</a>
4
<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#mobile-menu-1" aria-controls="mobile-menu-1" aria-expanded="false" aria-label="Toggle navigation">
5
<span class="navbar-toggler-icon"></span>
6
</button>
7
8
<div class="navbar-collapse collapse" id="mobile-menu-1" style="">
9
<ul class="navbar-nav mr-auto">
10
<li class="nav-item active">
11
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
12
</li>
13
<li class="nav-item">
14
<a class="nav-link" href="#">Link</a>
15
</li>
16
<li class="nav-item dropdown">
17
<a class="nav-link dropdown-toggle" href="#" id="navbar-dropdown-1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
18
Dropdown
19
</a>
20
<div class="dropdown-menu" aria-labelledby="navbar-dropdown-1">
21
<a class="dropdown-item" href="#">Action</a>
22
<a class="dropdown-item" href="#">Another action</a>
23
<div class="dropdown-divider"></div>
24
<a class="dropdown-item" href="#">Something else here</a>
25
</div>
26
</li>
27
<li class="nav-item">
28
<a class="nav-link disabled" href="#">Disabled</a>
29
</li>
30
</ul>
31
<form class="form-inline my-2 my-lg-0">
32
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
33
<button class="btn btn-outline-dark my-2 my-sm-0" type="submit">Search
34
</button>
35
</form>
36
</div>
37
</nav>
38
<!-- /navbar -->
Copied!
1
<!-- Navbar -->
2
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
3
<a class="navbar-brand" href="#">Navbar</a>
4
<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#mobile-menu-1" aria-controls="mobile-menu-1" aria-expanded="false" aria-label="Toggle navigation">
5
<span class="navbar-toggler-icon"></span>
6
</button>
7
8
<div class="navbar-collapse collapse" id="mobile-menu-1" style="">
9
<ul class="navbar-nav mr-auto">
10
<li class="nav-item active">
11
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
12
</li>
13
<li class="nav-item">
14
<a class="nav-link" href="#">Link</a>
15
</li>
16
<li class="nav-item dropdown">
17
<a class="nav-link dropdown-toggle" href="#" id="navbar-dropdown-1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
18
Dropdown
19
</a>
20
<div class="dropdown-menu" aria-labelledby="navbar-dropdown-1">
21
<a class="dropdown-item" href="#">Action</a>
22
<a class="dropdown-item" href="#">Another action</a>
23
<div class="dropdown-divider"></div>
24
<a class="dropdown-item" href="#">Something else here</a>
25
</div>
26
</li>
27
<li class="nav-item">
28
<a class="nav-link disabled" href="#">Disabled</a>
29
</li>
30
</ul>
31
<form class="form-inline my-2 my-lg-0">
32
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
33
<button class="btn btn-outline-dark my-2 my-sm-0" type="submit">Search
34
</button>
35
</form>
36
</div>
37
</nav>
38
<!-- /navbar -->
Copied!
1
<!-- Navbar -->
2
<nav class="navbar navbar-expand-md navbar-dark bg-primary">
3
<a class="navbar-brand" href="#">Navbar</a>
4
<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#mobile-menu-1" aria-controls="mobile-menu-1" aria-expanded="false" aria-label="Toggle navigation">
5
<span class="navbar-toggler-icon"></span>
6
</button>
7
8
<div class="navbar-collapse collapse" id="mobile-menu-1" style="">
9
<ul class="navbar-nav mr-auto">
10
<li class="nav-item active">
11
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
12
</li>
13
<li class="nav-item">
14
<a class="nav-link" href="#">Link</a>
15
</li>
16
<li class="nav-item dropdown">
17
<a class="nav-link dropdown-toggle" href="#" id="navbar-dropdown-1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
18
Dropdown
19
</a>
20
<div class="dropdown-menu" aria-labelledby="navbar-dropdown-1">
21
<a class="dropdown-item" href="#">Action</a>
22
<a class="dropdown-item" href="#">Another action</a>
23
<div class="dropdown-divider"></div>
24
<a class="dropdown-item" href="#">Something else here</a>
25
</div>
26
</li>
27
<li class="nav-item">
28
<a class="nav-link disabled" href="#">Disabled</a>
29
</li>
30
</ul>
31
<form class="form-inline my-2 my-lg-0">
32
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
33
<button class="btn btn-outline-dark my-2 my-sm-0" type="submit">Search
34
</button>
35
</form>
36
</div>
37
</nav>
38
<!-- /navbar -->
Copied!
Last modified 1yr ago
Copy link