Caffeinated Coder
Book an appointment
Lesson 10 · Layout

Positioning

Every box starts in normal flow, one below the other. The position property lets you move a box out of that order. Shift box B with position: relative and watch its old space stay behind. Pin a NEW tag to a corner with position: absolute, then make the card its anchor. Finally switch to position: fixed and scroll the page: the tag stays in the corner of the window.

10 min8 steps5 questionsIntermediate
Fig 10 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.