Skip to content
Learn Netverks

Lesson

Step 11/36 31% through track

layout-patterns

Common layout patterns

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 Common layout patterns—the ideas, syntax, and habits you need before moving on in Pico CSS.

Class-light frameworks teach when semantic HTML alone should carry the design.

You will apply Common layout patterns in contexts like: Documentation sites, blogs, internal tools, and side projects where you want polish without a large class vocabulary.

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 Common layout patterns in your own words.

Most Pico pages combine containers, semantic landmarks, and occasional grid or button variant classes. Below are recipes you will see in docs sites and internal tools.

Patterns

  • Docs shellheader + main.container + footer
  • Centered landing — single main.container with hero header group and CTA button
  • Card feed — stacked article elements (no grid required)
  • Split actions — primary button plus class="secondary outline" for cancel

Pair with data-theme="dark" on html for marketing or dev-tool aesthetics—see the theming chapter later in this track.

Important interview questions and answers

  1. Q: Where does container go?
    A: Typically on main (and sometimes header/footer) to cap width while keeping landmarks semantic—avoid replacing main with a bare div.container.
  2. Q: Pico vs Bootstrap for a dashboard?
    A: Bootstrap’s grid and JS widgets fit dense apps; Pico excels at readable content pages with little markup noise.

Self-check

  1. Sketch the landmark order for a docs shell.
  2. Which button classes might represent a secondary vs high-contrast action?

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

  • Pattern for docs sidebar?
  • Simplify markup how?

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