Skip to content

LAY-001 Let the page fit a 320-pixel viewport without scrolling sideways

Level
Rule
Verdict
Requirement
Area
Layout
Status
decided, version 1.0.5

Rule

When the viewport is 320 CSS pixels wide, every piece of content and every function is still there. Nothing needs scrolling in two directions to be read or used, except a part that needs two dimensions to be understood or used, such as a data table or a map.

Examples

Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.

Do: Cards reflow and long strings wrap

Window 320 px wide

Winter knits

  • Wool cardigan$89

  • Beanie$24

  • Mittens$19

Your last order is on its way.

Tracking number GB123456789012345678

Receipt: winter-knits-order-receipt-2026-11-24.pdf

The box stands in for a narrow browser window. At 320 px the cards sit in one column and the long receipt name breaks onto a second line. Change Width to 480 for two columns or 768 for three. Nothing in the box ever scrolls sideways. On a phone the wider windows are drawn small to fit. The real test is your own browser, 1280 px wide and zoomed to 400 percent.

Don't: A minimum width of 768 px

Window 320 px wide

Winter knits

  • Wool cardigan$89

  • Beanie$24

  • Mittens$19

Your last order is on its way.

Tracking number GB123456789012345678

Receipt: winter-knits-order-receipt-2026-11-24.pdf

The same content, with a minimum width of 768 px on the page wrapper. At 320 px Beanie is cut off at the edge, Mittens is out of sight and so is the end of the receipt name. Scroll the box sideways, or Tab to the third Add to bag, to reach Mittens. At 768 px it fits.

Why

Many people make the page bigger to read it. At 400 percent zoom a normal laptop window is only 320 CSS pixels wide, about as narrow as a small phone. If the layout keeps its wide shape, every line runs off the edge, and the reader has to scroll right and back again for each one. That is slow and tiring, and it is easy to lose your place. If the layout drops a menu or a button to make room, the person who zoomed in can no longer do what everyone else can. A narrow window should show less at once, never offer less. WCAG 2.2, 1.4.10 Reflow requires this. 1.4.4 Resize Text supports it; text enlarged to 200 percent is LAY-003a, and wider text spacing is LAY-003b.

Do

  • Test at 320 CSS pixels: set the browser window to 1280 pixels and zoom to 400 percent, or set the viewport width to 320 in developer tools. Then check that nothing outside an exempt part needs sideways scrolling to be read or used.
  • Check the widths between full size and 320 too, such as 1024, 768 and 480. A layout that works at both ends can still break at a width in between, for example when two columns are squeezed before they stack.
  • Give each exempt part its own scroll area, so the page itself scrolls only up and down. This is the clearest way to meet the rule.
  • Let a row of three product cards, Wool cardigan, Beanie and Mittens, become two columns and then one as the window narrows.
  • Turn a two-column form with "First name" and "Last name" side by side into one column, with each label still above its field.
  • Collapse the main navigation into a Menu button. Every link that was in the bar is still in the menu.
  • Let long words and strings wrap, such as the file name "workplace-safety-planning-guidelines-2026-final.pdf", a tracking number like "GB123456789012345678" or the address "customer.service@example.com". Use overflow-wrap: anywhere or word-break where needed.
  • Put a wide table of monthly costs per department in its own scroll area with a visible focus and an accessible name. The row of filter chips above it, "2025", "2026" and "Leeds only", and the link "Download costs as CSV" below it still fit the page. The table's title can name that area, as TBL-004 describes, and the table keeps its headers inside it (TBL-001).
  • Size a map or chart to its container width. People may pan or scroll inside it, while the page around it stays put.
  • Move a recipe photo from beside the text to above it on narrow screens, so Cinnamon buns and the list of ingredients get the full width.
  • Make a sticky header or a cookie banner static, smaller or closable at narrow widths, so it does not cover most of the screen or hide the element that has focus.
  • Open a side panel such as Filters over the content or in place of it at narrow widths, rather than pushing the content past the window edge.
  • If you use a row that scrolls sideways, such as Recently viewed, make each card narrow enough to be read and used whole at 320 pixels.
  • Use Justified's layout tokens as a starting point. --layout-margin shrinks the page margin to 1rem on small screens, and max-w-page sets only a maximum width, so the content can always get narrower. They help, but they do not do the job on their own: any child with a fixed width can still push the page sideways.

Don't

  • Give the page or its main wrapper a minimum width, such as min-width: 1024px, that forces sideways scrolling on narrow screens.
  • Hide the Save draft button or the language switch at small widths with no other way to reach them.
  • Cut "Your order confirmation and receipt" or a long product name off with an ellipsis and give no way to read the full text.
  • Let one wide table or image push the paragraphs around it wider than the window, so that they have to be scrolled sideways too.
  • Treat the table exception as covering the whole page, and leave the filter chips and the download link at their desktop width.
  • Keep a fixed header, a fixed footer and a chat button on screen at 400 percent zoom, so only a thin band of content is left between them.
  • Lock the page to portrait or landscape when the task does not need one of them. A layout that follows the available width works in both.

Exceptions

  • Content that needs two dimensions. Data tables, maps, diagrams, charts and video may need scrolling in both directions. So may a work area, such as the canvas in an image editor, whose toolbar must stay in view while people use it. The toolbar itself is not exempt and still fits the viewport. The exception covers only these parts. A page that scrolls sideways only because of such a part can still pass, as long as nothing else on it needs sideways scrolling.
  • Truncation with a way to the whole. When text cannot wrap, an ellipsis is acceptable on the terms LAY-003a sets.
  • Text that runs sideways. For content written to scroll sideways, such as some vertical scripts, the same test applies at a viewport 256 CSS pixels high, with scrolling sideways only. This rarely matters for left-to-right languages such as English.

Verdict

Requirement. Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work

Stances on LAY-001
SourceRoleStancePage
WCAG 2.2LawRequires1.4.10 Reflow
WCAG 2.2LawSupports1.4.4 Resize Text
WCAG 2.2LawSupports1.3.4 Orientation
WCAG 2.2LawSupports2.4.11 Focus Not Obscured (Minimum)
Material DesignJudge SupportsBreakpoints (window size classes)
Layout: overview
Apple Human Interface GuidelinesJudge SupportsLayout
Carbon Design SystemJudge Supports2x Grid: overview
2x Grid: usage
GOV.UK Design SystemExpert witness SupportsLayout
Nielsen Norman GroupExpert witness No position

Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.

History

  • Version 1.0.5, : Points to LAY-003a and LAY-003b for text that grows, wider text spacing and truncation.
  • Version 1.0.4, : Points to TBL-004 and TBL-001 for a wide table in its own scroll area.
  • Version 1.0.3, : Shorter rule sentence; the test example and the full list of exempt parts are under Do and Exceptions. No change in what the rule asks.
  • Version 1.0.2, : The link below the table says what it downloads (TXT-003).
  • Version 1.0.1, : Examples in English.
  • Version 1.0.0, : First version.

Last checked against the other rules for conflicts on .

More in Layout: 4 rules and 0 guidelines · All rules