Skip to content
Learn Netverks

Lesson

Step 20/36 56% through track

navbar-burger

Navbar and the burger menu

Last reviewed Jun 1, 2026 Content v20260601
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~2 min
Level
intermediate

This lesson

This lesson teaches Navbar and the burger menu—the ideas, syntax, and habits you need before moving on in Bulma.

Bulma offers a lighter component model when Bootstrap feels too heavy or dated.

You will apply Navbar and the burger menu in contexts like: Smaller marketing sites, internal dashboards, and projects that need quick responsive layout with minimal JS.

Read the lesson, edit HTML/CSS in the playground, press Run to preview, then answer the lesson MCQs.

When the previous lesson's MCQs feel easy and you can explain Navbar and the burger menu in your own words.

The navbar combines branding (navbar-brand), navigation (navbar-menu with navbar-start / navbar-end), and a mobile burger (navbar-burger).

CSS-only styling, JS for toggling

Bulma styles the collapsed mobile menu, but opening and closing it requires JavaScript (or a creative HTML/CSS workaround). Official docs toggle the is-active class on both the burger and the navbar-menu target—typically a dozen lines listening for click events.

In this playground you can:

  • Keep a static expanded navbar by adding is-active to the burger and menu (good for learning markup).
  • Try a checkbox hack: hidden checkbox + label.navbar-burger + a few lines of CSS so :checked reveals the menu without a framework script.

Compare with Bootstrap navbars, where collapse ships in the JS bundle. Bulma leaves behavior to you—consistent with the CSS-only philosophy from How Bulma works.

Important interview questions and answers

  1. Q: Why does the burger need JavaScript?
    A: Bulma provides presentation; toggling is-active and updating aria-expanded is interactive behavior the framework does not bundle.
  2. Q: navbar vs menu component?
    A: navbar is the top site chrome with burger + horizontal items; menu is a vertical list for sidebars and settings panels.

Self-check

  1. Which class must be toggled on both burger and menu for mobile open state?
  2. Name one playground-friendly approach when you cannot load JS in the editor.

Challenge

Mobile nav markup

  1. Include burger + navbar-menu structure from the lesson.
  2. Toggle is-active on burger and menu in markup to simulate open state.

Done when: both burger and menu show the open state when is-active is present.

Interview prep

Why does Bulma not toggle the burger for you?

Bulma is CSS-only—you add a few lines of JS (or a checkbox hack) to toggle is-active on burger and menu.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • What toggles is-active?
  • Keyboard nav gaps?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump