S2 Term 1 | ICT: CSS and the Box Model | 45-minute flow, teaching script, common errors, practice with answers
- 2026-11-30
Lesson prep guide · S2 Term 1 ICT
Students change colours but cannot explain why a box is wider than declared, nor why the same rule sometimes loses. One box model and one priority line settle both.
01 Prior knowledge check (first 3 minutes)
If any item below fails, fix it first, or this lesson stalls:
| Skill | Quick check | Pass standard |
|---|---|---|
| Multiplication | 20 pixels of padding on each side is how much in total? | 40 |
| Subtraction | 940 minus 11 gutters of 20 leaves how much for columns? | 720 |
| Division | That divided by 12 columns is how much each? | 60 |
02 Lesson flow (45 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0–4 min | Opening diagnostic | Show a box declared 300 that occupies 364 and ask why | Most blame the browser, not padding and border |
| 4–14 min | Selectors and weight | Element, class and ID with weights 1, 10, 100 | Write three selectors for one element and decide which wins |
| 14–26 min | Box model | Read the figure: 300 of content, 20 padding, 2 border, 10 margin, total 364 | Work 364, then the 256 content area under border-box |
| 26–37 min | Columns | Show 940 minus 11 gutters, divided by 12, giving 60 | Work the column width and compare fixed pixels with percentages |
| 37–41 min | Responsive | When a media query changes the column count, and why twelve columns fail on phones | One sentence on what a breakpoint does |
| 41–45 min | Exit check | Collect three answers and note selector, box or column errors | Work without notes |
03 Teaching script (read it aloud)
Act one: selectors and weight
Students restate: compare weight first, 1, 10, 100, then order.
Act two: the box model
Margin falls outside the background but still takes space; padding sits inside it. With box-sizing set to border-box the declared 300 includes padding and border, so the total stays 300 but the content area shrinks to 256. Both answers should be available, and the model should be named.
Students restate: width is content only; padding and border push it to 364; border-box locks it at 300.
Act three: columns and responsiveness
Students restate: subtract gutters before dividing; narrow screens drop columns, not type size.
04 Question types and steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Selector matching | Element, class, ID | Match the syntax with its weight | p is 1, .note is 10, #main is 100 |
| Weight comparison | Three conflicting rules | Compare numbers first, order second | ID beats class, class beats element |
| Box model | 300 content, 20 padding, 2 border, 10 margin | Content plus twice each of the others | 364 pixels |
| Column width | 940 pixels, 12 columns, 20 gutters | Subtract gutters, then divide | 60 pixels each |
A block 300 pixels wide, with 20 pixels of padding, 2 of border and 10 of margin on each side, occupies 300 plus 40 plus 4 plus 20, which is 364 pixels. With box-sizing set to border-box the declared 300 includes padding and border, so the total stays 300 but the content area shrinks to 256. Students usually add padding and stop there.
05 Three independent practice questions
| Question | Answer | What to observe |
|---|---|---|
| Content 300, padding 20, border 2, margin 10 on each side: what is the total width? | 364 pixels | Padding alone leaves border and margin out |
| With box-sizing: border-box and width 300, what is the content area? | 256 pixels, 300 minus 40 minus 4 | 300 means padding and border were not deducted |
| 940 pixels in 12 columns with 20 gutters: how wide is each column? | 60 pixels | Dividing straight away gives 78, which ignores the gutters |
06 Common errors and correction lines
| Error | Student usually writes | Tutor says |
|---|---|---|
| Padding only | “300 plus 40 is 340, that is the total” | “Add 2 of border and 10 of margin on each side: 364 in all.” |
| Later rule always wins | “The rule written last always applies” | “Weight comes first: ID 100 over class 10 over element 1, then order.” |
| Margin inside the background | “Margin is part of the background” | “Margin sits outside the background and only takes layout space.” |
| Straight division | “940 divided by 12 is the column width” | “Subtract 11 gutters of 20 first, then divide, which gives 60.” |
07 Homework (paper and question numbers)
- S2 ICT paper, part three, question 9 on head and body Question 9, where the stylesheet link belongs, the “where does CSS live” point of act one
- S2 ICT paper, part three, question 11 on the six heading levels Question 11, six levels, good practice for styling all six with element selectors
- S2 ICT paper, part three, question 12 on alternative text Question 12, alt text, which CSS cannot supply because it is an HTML attribute
08 Exit check (last 3 minutes)
| Question | Answer | Verdict |
|---|---|---|
| Three selectors and their weights? | Element 1, class 10, ID 100 | Names without numbers means act one is retaught |
| Total width for 300, 20, 2, 10? | 364 pixels | 340 means border and margin were dropped |
| 940 pixels, 12 columns, 20 gutters: each column? | 60 pixels | 78 means gutters were not subtracted |
09 Tutor FAQ
Which year group is this page for?
S2 Term 1 ICT styling; S1 can take the box model only, S3 can add flexbox, grid and breakpoint design.
Can 45 minutes cover selectors, the box model and columns?
Yes. Selectors and the box model take 22 minutes, 49 per cent; columns 11, responsiveness 4, the exit check 4.
Is there a paper to set as homework?
Yes. Questions 9, 11 and 12 of part three of the S2 ICT paper cover structure; they pair well with this page.
Find a tutor freeTutor sign-up →
©2026 TutorZone · www.tutorzone.com.hk · Terms of use · All rights reserved. Original TutorZone material for personal study and teaching only; not for resale or republication.



