Skip to content
Learn Netverks

Lesson

Step 30/36 83% through track

offcanvas

Offcanvas panels

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

This lesson

This lesson teaches Offcanvas panels—the ideas, syntax, and habits you need before moving on in Bootstrap.

Bootstrap patterns appear constantly in legacy apps and rapid admin UI work.

You will apply Offcanvas panels in contexts like: Internal tools, WordPress themes, Laravel apps, and teams that want opinionated UI without writing every rule from scratch.

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.

Offcanvas slides a panel from the edge of the viewport—ideal for mobile navigation, filters, or shopping carts. Structure: offcanvas offcanvas-start|end|top|bottom with offcanvas-header and offcanvas-body.

Triggers and backdrop

Open with data-bs-toggle="offcanvas" and data-bs-target, same contract as modals. The backdrop dismisses on outside click unless configured otherwise. On small screens, offcanvas often replaces a collapsed navbar’s link list.

Layout interaction

Unlike modals centered on screen, offcanvas shares the viewport with main content—ensure body scroll is managed and that focus moves into the panel when opened.

Self-check

  1. Which class slides the panel from the right edge?
  2. What two sections divide header actions from main content?
  3. When would you choose offcanvas over a modal?

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

  • Where offcanvas beats modal?
  • What side placement fits mobile nav?

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