You spent Week 2 spacing things with padding, margin, and border. Today you learn how to actually place an element exactly where you want it — pinned to the top of the screen, layered over another element, or locked to the corner of the page. This is also your first look at Flexbox and Grid, the two layout tools the rest of this week is built around.
Live classes don't award SP automatically. Today's guaranteed points come from today's Public Building task — the rest of the week's SP is unlocked through the virtual sessions, the assignment, and your pod's video.
How to control exactly where an element sits — and what it sits next to.
- Control display —
block,inline,inline-block, andnone, and how each changes what an element does and doesn't respect about the box model. - Control position —
static,relative,absolute,fixed, andsticky, and what each one actually anchors to. - Understand stacking — a first working sense of
z-indexand why two positioned elements sometimes fight for the same space. - See where this is going — a first look at
display: flexanddisplay: grid, just enough to recognise them before Tuesday and Thursday's deep dives.