Skip to the page

CSS in real projects · mid

Building a layout live from a screenshot

In a live layout round, first sketch the structure (header, sidebar, content, cards), choose grid for the page and flex for rows, use semantic elements, and get the skeleton right before polishing details.

The notes

What you must know

  • Start with semantic HTML: header, nav, main, aside, footer, section, ul for lists, button for actions.
  • Page skeleton with grid-template-areas; rows of items with flex and gap.
  • Use variables for colours and spacing so changes are quick.
  • Talk while you build: say the plan, then the trade-offs (e.g. sticky header, overflow, truncation, responsive breakpoints).
  • Check edge cases: long text, empty states, small screens, keyboard focus.

The red pen

Common traps: mistake → fix

  • Mistake: "pixel-perfect first"

    Fix: the skeleton and responsive behaviour matter more than exact pixels in the first 20 minutes.

Easy to hard

Questions interviewers ask, easy to hard

  1. How would you build this dashboard layout?
  2. How do you make the sidebar collapse on small screens?
  3. How do you handle long titles in cards?

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview