thecodezone.
The Code Zone
Short steps, at your pace · Free lessons and practice · Member video walkthroughs
Save your next small win.

Checking your account…

08.05 · From wireframe to website / Learn · 6 guided steps

Adapt the wireframe for phones

Keep a readable phone layout while adding a wider two-column arrangement.

Activity 5 of 6 in From wireframe to website

All courses

CSS Basics / 08.05

Adapt the wireframe

Not started

Keep a readable phone layout while adding a wider two-column arrangement.

More options

Your lesson progress

Read & explore: not startedGuided workshop: not startedRepair challenge: not started

Empty: not started. Yellow: in progress. Green: complete. Marking the whole activity complete does not replace your test results. These circles save in this browser for this pilot.

Rob compares a desktop sidebar layout with the same regions stacked on a phone.
Rob’s comic strip · From wireframe to website

Understand the plan

Start with one column and a useful content order. A min-width media query adds the desktop arrangement only when there is room. Both the column template and named area map must change together.

The preview viewport is independent of your screen. Choose 390px to inspect the phone map and 1280px to trigger the wider layout. Scale to fit changes how the preview is displayed, not which media query runs.

Explore the wireframe

The aside moves below main on phones and beside it on desktop. The HTML order stays the same. Inspect navigation focus with Tab as well as checking the automatic layout results.

Select a labeled region. Compare its purpose with its position. These controls change this demonstration only.

main.content

Place the featured invitation and three event articles here.

Desktop: main and aside sit beside each other. The main column receives two shares of the available width.

Preview the finished practice

This target is a visual reference, not starter code. Use its width controls to inspect the layout. Your own code stays separate.

Compare the phone and desktop layouts using the independent preview viewport.

Build it in small steps

The aside moves below main on phones and beside it on desktop. The HTML order stays the same. Inspect navigation focus with Tab as well as checking the automatic layout results.

The workshop opens in a new tab. Your own code carries forward; each step has a focused check and an optional hint.

Start workshop(opens in a new tab)

6 steps · Saved work · Instant feedback

Look up the property you need

You do not need to memorize every value. Use documentation to check a property, then explain what it changes in this layout.

Your turn: repair one problem

This is a separate saved challenge. The workshop completion and code remain unchanged.

The checks below assess this repair. Passing them does not complete the guided workshop.

YOUR TURN

Repair the breakpoint

Work through the checklist in styles.css. Run the preview, then check your work.

To pass this challenge
  • In styles.css, below the SCREEN MEDIA MIN WIDTH 800PX comment, add a media block with the condition (min-width: 800px).
  • In styles.css, add a rule with selector .site inside the @media (min-width: 800px) block.
  • Set its grid-template-columns property to minmax(0, 2fr) minmax(0, 1fr).
  • In styles.css, add a rule with selector .site inside the @media (min-width: 800px) block. Use occurrence number 2 of this selector in source order.
  • Set its grid-template-areas property to "header header" "nav nav" "main aside" "footer footer".
  • Keep the supplied page content, classes, IDs and link destinations unless a checklist item explicitly changes them.
  • Keep the one-column phone map outside that query.

Edit styles.css and watch the preview update after you pause typing. Open index.html to inspect its stylesheet link. Run or Check saves immediately. Word wrap is enabled.

Ready to checkRun the checks to see your results here.

Need a nudge?

Focus on the requested rule

Change the desktop media query from min-width: 1800px to min-width: 800px.

Compare the two preview widths

Use the Phone and Desktop preview sizes. The preview width controls the media queries; the size of your monitor does not. Keep unrelated declarations and all supplied content.

Replace your editor code?

Your current work will be replaced. Choose Cancel to keep it.

Ready to try it?

Practice in your browser and see your results.

Progress details

Have a question?

Ask the Code Zone community.

Ask a question in The Code Zone (opens in a new tab)

Continue learning

ONE STEP FORWARD

Keep a readable phone layout while adding a wider two-column arrangement.