Skip to content
Learn Netverks

Lesson

Step 30/36 83% through track

off-canvas

Off-canvas navigation

Last reviewed May 28, 2026 Content v20260528
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~1 min
Level
intermediate

This lesson

This lesson teaches Off-canvas navigation—the ideas, syntax, and habits you need before moving on in Foundation.

Foundation skills help when you inherit marketing sites built on Zurb’s grid system.

You will apply Off-canvas navigation in contexts like: Large marketing sites, email-adjacent layouts, and legacy responsive redesigns.

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

Toward the end of the track—use it to consolidate patterns before the capstone or summary lessons.

Off-canvas slides a sidebar (usually navigation) over or beside the main content on small screens. Wrap the page in off-canvas-wrapper, place the menu in div.off-canvas with data-off-canvas, and put page content in off-canvas-content with data-off-canvas-content.

Triggers

Buttons use data-toggle="offCanvasId" to open the panel. Pair with data-close inside the menu for explicit dismiss. Test that focus returns to the trigger when the panel closes.

When to use it

Mobile nav drawers are the classic case—same mental model as Bootstrap offcanvas, but Foundation’s markup names differ. Desktop layouts often show the menu inline and hide off-canvas triggers at large breakpoints.

Self-check

  1. Which wrapper contains both the panel and main content?
  2. What attribute marks the sliding panel region?
  3. How does the open button reference the correct panel?

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

  • Left vs right menu?
  • Overlay vs push?

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