7
Bootstrap Navigation

Bootstrap Navigation - WD4E · Bootstrap Navigation. Navigation Bars • One of the components that gives Bootstrap its familiar “look and feel” is the navigation options. •

  • Upload
    others

  • View
    14

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Bootstrap Navigation - WD4E · Bootstrap Navigation. Navigation Bars • One of the components that gives Bootstrap its familiar “look and feel” is the navigation options. •

Bootstrap Navigation

Page 2: Bootstrap Navigation - WD4E · Bootstrap Navigation. Navigation Bars • One of the components that gives Bootstrap its familiar “look and feel” is the navigation options. •

Navigation Bars

•  One of the components that gives Bootstrap its familiar “look and feel” is the navigation options.

•  The nav class is combined with other classes to create each style

Page 3: Bootstrap Navigation - WD4E · Bootstrap Navigation. Navigation Bars • One of the components that gives Bootstrap its familiar “look and feel” is the navigation options. •

Making a navigation bar

•  Decide what type of links you want:– nav-tabs vs nav-pills

RD:nav-tabsRD: nav-pills

•  Decide on layout (horizontal, stack, justified, etc.)•  nav-stacked, nav-justified

Page 4: Bootstrap Navigation - WD4E · Bootstrap Navigation. Navigation Bars • One of the components that gives Bootstrap its familiar “look and feel” is the navigation options. •

Drop downs

•  To add dropdown menus you need to include the Bootstrap js files AND a link to the jQuery.

•  Bootstrap example:http://getbootstrap.com/components/#pills-with-dropdowns

RD:dropdowns

Page 5: Bootstrap Navigation - WD4E · Bootstrap Navigation. Navigation Bars • One of the components that gives Bootstrap its familiar “look and feel” is the navigation options. •

navbar class•  The navbar class serves as a navigation header for

your application or site.

•  Positioning includes:•  navbar-static-top•  navbar-fixed-top•  navbar-fixed-bottom

RD:navbar

Page 6: Bootstrap Navigation - WD4E · Bootstrap Navigation. Navigation Bars • One of the components that gives Bootstrap its familiar “look and feel” is the navigation options. •

Accessibility•  Using a “nav” class does not convey

semantics.

•  Use the <nav> tag or ARIA attribute role=“navigation”.

Page 7: Bootstrap Navigation - WD4E · Bootstrap Navigation. Navigation Bars • One of the components that gives Bootstrap its familiar “look and feel” is the navigation options. •

Acknowledgements/ContributionsThese slides are Copyright 2016- Colleen van Lent as part of http://www.intro-webdesign.com/ and made available under a Creative Commons Attribution NonCommercial 4.0 License. Please maintain this last slide in all copies of the document to comply with the attribution requirements of the license. If you make a change, feel free to add your name and organization to the list of contributors on this page as you republish the materials.

Initial Development: Colleen van Lent , University of Michigan School of Information