← the terminal · instructor

W10 // DIVS AND STRUCTURE THINKING

OCT 21 · Ch 5 Sec 1-4 · DUE: Restructured page with regions

This week's deckPPTX

// RUN OF SHOW (8:45-10:15)
8:45

Stand-up: last week's deliverable graded, questions answered

9:00

This week's presentation

9:20

At the keyboard: guided type-along

9:45

Build time: assignment or project work

10:10

Close: commit, push, and preview next week's reading

// THE POINT THIS WEEK
Why flat pages fail. The div. Wrapping and nesting. Thinking in page regions.
// TALKING POINTS
Divs draw the regions
  • A div is a generic box: it means nothing until you name it
  • Header, main, sidebar, footer: pages think in regions
  • Tint your divs with backgrounds while building so you can see the skeleton
The wrapper pattern
  • One outer container, width capped, margin auto: centered content, forever
  • It's the oldest layout trick that still ships on modern sites
  • Name boxes for what they contain, not how they look; .sidebar outlives .blue-box
// LINKS