UX5: Sketches, wireframes and forms

Lesson 3 of 5 · reading 15–25 minutes; practice and project time is on the module page

Mobile-first and responsive layout

🎯You'll be able to

Design for a small phone screen first, then adapt the layout for larger screens, and check it at 320 pixels wide.

🏠The everyday picture

Packing for a small suitcase forces you to choose what really matters. If it fits the small case, the big case is easy.

📘What it really is

📝A worked example

Input: the reference prototype.

Steps:

  1. Open http://localhost:8080/prototype/ and make the window 320 pixels wide (browser developer tools have a device toolbar).
  2. Scroll each page and look for anything that needs sideways scrolling.

Expected output: no sideways scroll on any page. The slot grid uses grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)), so it shows two columns at 320 px and more on wider screens. Test 8 of npm run test:prototype checks every page at 320 px.

🌍Where it's used

📝Case scenario

An exam-results page had a fixed-width table. On phones, students had to scroll sideways to see their marks, and many zoomed and lost their place. Stacking each subject as a card on narrow screens fixed it.

🖱️Try it

Open any website on a phone or at 320 pixels wide. Find one thing that breaks (sideways scroll, cut-off text, tiny targets) and sketch a fix. Success: your fix keeps all content and works without sideways scrolling.

⚠️Common mistakes

🛠️For your project

Project 2's test 8 fails if any page scrolls sideways at 320 pixels.

✅Quick check

Why design for phones first?

Show the answer

It forces priority, and most of the kit's survey respondents booked on a phone.

At what width should content reflow without sideways scrolling?

Show the answer

320 CSS pixels.

← PreviousWireframes and visual hierarchy
ProLearners Assist