Nav (or) Navbar above carousal

How to create a navbar on carousal by using Bootstrap.

See the documentation: the data-slide-to attribute can be used in the carousel to specify which slide an element should trigger a slide to.

Usage

Via data attributes

Use data attributes to easily control the position of the carousel. data-slide accepts the keywords prev or next , which alters the slide position relative to its current position. Alternatively, use data-slide-to to pass a raw slide index to the carousel data-slide-to="2" , which shifts the slide position to a particular index beginning with 0 .

1 Like