• HTML & CSS
  • Angular
  • Collapse
Getting started
  • Welcome
  • Install guide
Layouts
  • Containers
  • Dividers
  • Elevation
  • Flexbox
  • Grid
  • Pages
  • Sections
Styles
  • Colours
  • Typography
Helpers
  • Responsiveness
  • Scrollable
  • Spacing
  • Text
  • Other
Elements
  • Badges
  • Buttons
  • Icons
  • Tables
Components
  • Accordions
  • Alerts
  • Avatars
  • Breadcrumbs
  • Cards
  • Dropdowns
  • Forms
  • Lists & List Group
  • Modals
  • Meta Data
  • Nav
  • Pagination
  • Progress Timeline
  • Sidebar / Drawer
  • Snackbars & Toasts
  • Steppers
  • Tabs
  • Toggle
  • Toolbars
  • Tooltips
Organisms
  • Panel Header
Templates
  • Panel
Other
  • Downloads
  • Changelog

Nav

A responsive horizontal nav bar that can contain links, tabs, buttons, icons, and a logo


Basic nav

      
<p>Note the nav requires the <code>.hx-nav</code> base class.</p>
<br>
<ul class="hx-nav">
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link">News & data</a>
  </li>
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link is-active">Status board</a>
  </li>
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link">Custom</a>
  </li>
</ul>
          
    

Note the nav requires the .hx-nav base class.


  • News & data
  • Status board
  • Custom

Alignments

      
<h5>Center aligned</h5>
<p>Centering the nav can be easily done by adding the modifier <code>.is-centered</code> to the <code>.hx-nav</code> base class.</p>
<br>
<ul class="hx-nav is-centered">
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link">News & data</a>
  </li>
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link is-active">Status board</a>
  </li>
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link">Custom</a>
  </li>
</ul>
<hr />
<h5>Right aligned</h5>
<p>To align the nav to the right can be easily achieved by adding the modifier <code>.is-right</code> to the <code>.hx-nav</code> base class.</p>
<br>
<ul class="hx-nav is-right">
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link">News & data</a>
  </li>
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link is-active">Status board</a>
  </li>
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link">Custom</a>
  </li>
</ul>
          
    
Center aligned

Centering the nav can be easily done by adding the modifier .is-centered to the .hx-nav base class.


  • News & data
  • Status board
  • Custom

Right aligned

To align the nav to the right can be easily achieved by adding the modifier .is-right to the .hx-nav base class.


  • News & data
  • Status board
  • Custom

Vertical nav

      
<p>Note the vertical nav requires the modifier <code>.is-vertical</code> added to <code>.hx-nav</code> base class.</p>
<br>
<ul class="hx-nav is-vertical">
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link">News & data</a>
  </li>
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link is-active">Status board</a>
  </li>
  <li class="hx-nav-item">
    <a href="#" class="hx-nav-link">Custom</a>
  </li>
</ul>
          
    

Note the vertical nav requires the modifier .is-vertical added to .hx-nav base class.


  • News & data
  • Status board
  • Custom