If you need to design a navigation bar that changes layout in mobile views, which Bootstrap classes would you use?
- navbar, navbar-expand-md, navbar-light, bg-light
- navbar, navbar-toggle, navbar-inverse, bg-dark
- navbar, navbar-expand-lg, navbar-dark, bg-dark
- navbar, navbar-collapse, navbar-light, bg-light
To create a responsive navigation bar in Bootstrap that adapts to mobile views, you would use the navbar, navbar-expand-md, navbar-light, and bg-light classes. These classes help in creating a navigation bar that expands on medium-sized screens and has a light background.
Loading...
Related Quiz
- Utilizing __________ for Bootstrap JavaScript components can improve user experience by loading non-essential features later.
- Describe how the box model can affect cross-browser layout consistency.
- What is the role of the 'animate.css' library in enhancing Bootstrap animations?
- How do you detect when a Bootstrap carousel slide transition ends?
- The Bootstrap 'scrollspy' component emits the '___' event when a new item becomes activated.