hub.eb?material_id=469&track_id=471

Responsive Bootstrap Navbar


A Bootstrap Navbar is a navigation header that is commonly used to display branding and navigation options.

The Bootstrap Navbar can be expanded responsively at any breakpoint using the utility class navbar-expand-{bp}.

The below image shows a Navbar displayed on a large screen.

The below image shows a Navbar displayed on a small screen.

You can find how to build a Bootstrap Navbar here.

Starter App 104 includes header, a Component that uses the Bootstrap Navbar.

Steps


1

Create a form with a Bootstrap4 Presentation Template.

2

Add Nav Panel Control and give it the class navbar navbar-expand-md navbar-light.

3

Add a Hyperlink Control to the Nav Panel Control and give it the class navbar-toggler and custom attributes 

type="button",data-target="#navbarSupportedContent",data-toggle="collapse"

 Set the content of the Hyperlink Control to

<span class="navbar-toggler-icon"></span>
4

Add a Panel Control to the Nav Panel Control and give it the classes collapse navbar-collapse and id navbarSupportedContent.

5

Add a List Panel Control to the Panel Control and give it the class navbar-nav.

6

Add two List Item Controls with class nav-item.

7

Add a Hyperlink Control to each List Item Control with class nav-link.

8

Run the form and observe the behaviour of the Navbar at different screen sizes.

Current Module

Related