Newest âź· Oldest
  1. Snapshot at 2017-04-12

    Foundation topbar

    Foundation comes with a topbar wit navigation supports. Tt is quite useful for website with minimal header. The navigation items are displayed in wide screen and then hide into a menu button in small screen.

    Here is the result of the same top bar displaying in both desktop and mobile.

    A basic example:

    Open exampel in jsFiddle

    <nav class="top-bar" data-topbar>
      <ul class="title-area">
        <li class="name">
           <h1><a href="#">My Site</a></h1>
        </li>
        <li class="toggle-topbar"><a href="#"><span>Menu</span></a>
        </li>
      </ul>
      <section class="top-bar-section">
        <ul class="right">
          <li><a href="#">Right Button</a></li>
          <li><a href="#">Another button</a></li>
        </ul>
      </section>
    </nav>
    

    A full example:

    Open example in jsFiddle

    <div class="sticky">
      <nav class="top-bar" data-topbar>
        <ul class="title-area">
          <li class="name">
            <h1><a href="#">My Site</a></h1>
          </li>
          <li class="toggle-topbar"><a href="#"><span>Menu</span></a></li>
        </ul>
        <section class="top-bar-section">
          <ul class="left">
            <li><a href="#">A button on left</a></li>
          </ul>
          <ul class="right">
            <li><a href="#">Right Button</a></li>
            <li class="has-dropdown">
              <a href="#">Right Button Dropdown</a>
              <ul class="dropdown">
                <li><a href="#">First link in dropdown</a></li>
                <li><a href="#">Second link in dropdown</a></li>
              </ul>
            </li>
          </ul>
        </section>
      </nav>
    </div>
    

    For more examples, please take a look at the Foundation documentation.

    Note: Using the Foundation top-bar doesn’t mean it has to be in black background. This tutorial by Mark Teekman shows how we can customize the top-bar.

  2. Snapshot at 2017-04-11

    Foundation topbar

    Foundation comes with a topbar wit navigation supports. Tt is quite useful for website with minimal header. The navigation items are displayed in wide screen and then hide into a menu button in small screen.

    Here is the result of the same top bar displaying in both desktop and mobile.

    A basic example:

    Open exampel in jsFiddle

    <nav class="top-bar" data-topbar>
      <ul class="title-area">
        <li class="name">
           <h1><a href="#">My Site</a></h1>
        </li>
        <li class="toggle-topbar"><a href="#"><span>Menu</span></a>
        </li>
      </ul>
      <section class="top-bar-section">
        <ul class="right">
          <li><a href="#">Right Button</a></li>
          <li><a href="#">Another button</a></li>
        </ul>
      </section>
    </nav>
    

    A full example:

    Open example in jsFiddle

    <div class="sticky">
      <nav class="top-bar" data-topbar>
        <ul class="title-area">
          <li class="name">
            <h1><a href="#">My Site</a></h1>
          </li>
          <li class="toggle-topbar"><a href="#"><span>Menu</span></a></li>
        </ul>
        <section class="top-bar-section">
          <ul class="left">
            <li><a href="#">A button on left</a></li>
          </ul>
          <ul class="right">
            <li><a href="#">Right Button</a></li>
            <li class="has-dropdown">
              <a href="#">Right Button Dropdown</a>
              <ul class="dropdown">
                <li><a href="#">First link in dropdown</a></li>
                <li><a href="#">Second link in dropdown</a></li>
              </ul>
            </li>
          </ul>
        </section>
      </nav>
    </div>
    

    For more examples, please take a look at the Foundation documentation.

    Note: Using the Foundation top-bar doesn’t mean it has to be in black background. This tutorial by Mark Teekman shows how we can customize the top-bar.

  3. Snapshot at 2017-04-11

    Foundation topbar

    Foundation comes with a topbar wit navigation supports. Tt is quite useful for website with minimal header. The navigation items are displayed in wide screen and then hide into a menu button in small screen.

    Here is the result of the same top bar displaying in both desktop and mobile.

    A basic example:

    Open exampel in jsFiddle

    <nav class="top-bar" data-topbar>
      <ul class="title-area">
        <li class="name">
           <h1><a href="#">My Site</a></h1>
        </li>
        <li class="toggle-topbar"><a href="#"><span>Menu</span></a>
        </li>
      </ul>
      <section class="top-bar-section">
        <ul class="right">
          <li><a href="#">Right Button</a></li>
          <li><a href="#">Another button</a></li>
        </ul>
      </section>
    </nav>
    

    A full example:

    Open example in jsFiddle

    <div class="sticky">
      <nav class="top-bar" data-topbar>
        <ul class="title-area">
          <li class="name">
            <h1><a href="#">My Site</a></h1>
          </li>
          <li class="toggle-topbar"><a href="#"><span>Menu</span></a></li>
        </ul>
        <section class="top-bar-section">
          <ul class="left">
            <li><a href="#">A button on left</a></li>
          </ul>
          <ul class="right">
            <li><a href="#">Right Button</a></li>
            <li class="has-dropdown">
              <a href="#">Right Button Dropdown</a>
              <ul class="dropdown">
                <li><a href="#">First link in dropdown</a></li>
                <li><a href="#">Second link in dropdown</a></li>
              </ul>
            </li>
          </ul>
        </section>
      </nav>
    </div>
    

    For more examples, please take a look at the Foundation documentation.

    Note: Using the Foundation top-bar doesn’t mean it has to be in black background. This tutorial by Mark Teekman shows how we can customize the top-bar. What’s next? We’re going to take a look at “Off canvas”.