Positioning
A CSS property that sets how an element is positioned. Values: static (default), relative, absolute, fixed or sticky. Offset properties (top, right, bottom, left) take effect on non-static elements.
Understanding Positioning in HTML & CSS
What it does: position: relative nudges the element using offset properties. The space the element occupied in normal flow is preserved. The header scrolls normally until its top edge hits 0 from the viewport top, then it sticks in place like a fixed element. z-index sets the stacking order. Higher values appear in front. It only works on elements with a non-static position. 'stack-order' is not a valid CSS property. The colon is required between the property name and its value. 'position absolute' without a colon is invalid CSS. CSS requires the number and unit to be joined with no space. '10 px' with a space is an invalid value and will be ignored.
Common mistakes: CSS declarations require a colon. It should be position: absolute; not position absolute;. 'absolut' is a typo. The correct value is position: absolute;.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 43–52) and word search (Modules 43–63).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
positionFill in the Blanks
Spot the Error
Student with a class code? Join your class →