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.03 · From wireframe to website / Learn · 7 guided steps

Place the page regions

Translate a desktop wireframe into named Grid areas and flexible columns.

Activity 3 of 6 in From wireframe to website

All courses

CSS Basics / 08.03

Place the page regions

Not started

Translate a desktop wireframe into named Grid areas and flexible columns.

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 maps five regions into a desktop grid with main and aside beside each other.
Rob’s comic strip · From wireframe to website

Understand the plan

Grid layout starts on the shared parent. Its direct children become items. A named area map is a readable layout plan, but its names must also be assigned to the children with grid-area. The browser does not infer that connection from a tag or class.

Two tokens in each quoted row describe two columns. Repeating header or footer across both cells makes it span the row. A 2fr 1fr template divides the remaining width after gaps into three shares, with two assigned to main. minmax(0, ...) lets content shrink inside its track.

Explore the wireframe

This focused practice builds the wide layout. Use the 1280px preview to inspect it. The responsive module later adapts the same idea for phones.

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

This focused practice builds the wide layout. Use the 1280px preview to inspect it. The responsive module later adapts the same idea for phones.

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)

7 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 column ratio

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

To pass this challenge
  • In styles.css, find the existing rule with selector .site outside all media blocks.
  • Set its grid-template-columns property to minmax(0, 2fr) minmax(0, 1fr).
  • Keep the supplied page content, classes, IDs and link destinations unless a checklist item explicitly changes them.
  • Keep the second track at minmax(0, 1fr) and gap at 20px.

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 first .site track from minmax(0, 1fr) to minmax(0, 2fr).

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

Translate a desktop wireframe into named Grid areas and flexible columns.