In short and in plain language
Some people do not see well. They make a page very big in the browser. Then the page is as narrow as a small phone.
The text should then slide into one column. You should only scroll down. You should not have to scroll to the side.
This often goes wrong. One part is too wide. A bar at the top stays in place and takes a lot of room. A table pushes everything to the side.
This can be fixed in the code. Wide parts get narrow. A bar only stays in place when there is room. A table gets its own frame.
Maps and tables may scroll in two directions. Everything else should fit in one column. Nothing may go missing.
An online shop looks flawless on a laptop. Anyone who reads it in a window 1280 pixels wide at 400 percent zoom sees the same offer in a column 320 CSS pixels wide (W3C, Understanding 1.4.10), and that is where it shows whether the layout keeps up. The menu runs off the right edge, the header takes up half the height, a size chart pushes the whole page sideways, and every line of text has to be scrolled back and forth. Readers like this are not isolated cases: 17.9 percent (WebAIM 2018) of respondents in a survey of people with low vision enlarge content to 400 percent or more. How to check a page for zoom without tools is covered in the BFSG self-check. This article picks up from there: it shows six typical CSS patterns that make reflow fail at 320 CSS pixels and how to fix them in your existing code without rebuilding the page.
Key takeaways
- Content must remain usable at a width of 320 CSS pixels without scrolling in two directions; that equals a window 1280 CSS pixels wide at 400 percent zoom (W3C, Understanding 1.4.10).
- Fixed widths become max-width, flex rows get flex-wrap and min-width: 0, grid columns minmax(0, 1fr); long words and URLs wrap with overflow-wrap: anywhere (W3C, C31, C32 and C33).
- Fix headers and footers only above a minimum window height: at 400 percent zoom on a 1280 × 1024 pixel screen, only 236 pixels of height remain for the page (W3C, Understanding 1.4.10).
- Data tables, maps, diagrams, video and toolbars may scroll in two directions, ideally within their own area; the heading, search field and pagination next to them must reflow (W3C, Understanding 1.4.10).
- Nothing may disappear on reflow, neither sidebar nor search field nor field label (W3C, F102), and the viewport meta element must not restrict zoom, as it does on 19 percent of mobile websites (Web Almanac 2025).
What 1.4.10 requires and what it does not
Success criterion 1.4.10 Reflow is a Level AA criterion. It requires that content can be presented without loss of information or functionality and without scrolling in two dimensions: for vertically scrolling content at a width of 320 CSS pixels (W3C, WCAG 2.2), for horizontally scrolling content, such as vertical text, at a height of 256 CSS pixels (W3C, WCAG 2.2). For websites in German or English, only the width matters in practice. Parts that require a two-dimensional layout for usage or meaning are exempt; more on that below.
The 320 pixels are not a phone size that a separate mobile site could tick off. They equal a desktop window 1280 CSS pixels wide at 400 percent zoom (W3C, Understanding 1.4.10). Anyone who docks a browser window to half a screen of 960 CSS pixels (W3C, Understanding 1.4.10) reaches the same width at just 300 percent zoom (W3C, Understanding 1.4.10). The criterion was added with WCAG 2.1 in June 2018 (W3C, WCAG 2.2) and keeps the same values in WCAG 2.2. The values are test sizes, not device promises: the W3C itself points out that the taskbar, tabs and address bar reduce the actual window area.
Reflow is needed above all by people with low vision who work with browser zoom. In WebAIM's second low vision survey, conducted in September 2018 with 248 (WebAIM 2018) valid responses, 44.0 percent (WebAIM 2018) frequently used the browser's zoom controls. 29.7 percent (WebAIM 2018) mostly enlarged to between 200 and 400 percent, 17.9 percent (WebAIM 2018) to 400 percent or more. The sample was not controlled, but the direction is clear. Worldwide, at least 2.2 billion people (WHO) have a near or distance vision impairment. Add everyone who splits a window in half, works on a small notebook or enlarges the text for tired eyes.
Legally, the path runs through harmonized standards. Under Section 4 of the BFSG, products and services that comply with harmonized standards whose references have been published in the Official Journal of the EU are presumed to meet the requirements of the BFSG ordinance, insofar as the standards cover those requirements (BFSG). The European standard EN 301 549 lists reflow for web pages as clause 9.1.4.10 (ETSI EN 301 549) and refers there to WCAG 2.1. A version of this standard only carries the presumption under Section 4, however, once its reference has been published in the Official Journal for that purpose; which version that is and how directive, act and standard fit together is explained in our article on EN 301 549 behind the BFSG; which offerings are affected is covered under BFSG requirements.
Find the culprit before you rebuild
A horizontal scrollbar usually has a single trigger: one element that is wider than the window and drags the page along. Rather than rebuilding the whole layout, start by looking for that element. Set the window to 1280 CSS pixels wide and zoom to 400 percent (W3C, Understanding 1.4.10), or switch the device view in the developer tools to 320 pixels wide. Device emulation is faster but does not show everything: sticky bars that depend on the window height behave differently under real zoom, because the height shrinks to a quarter as well. The following script lists the outermost elements that stick out past the edge in the console.
// Run in the console while the page is 320 CSS pixels wide
const viewportWidth = document.documentElement.clientWidth;
const tooWide = [...document.querySelectorAll('body *')].filter((el) => {
const box = el.getBoundingClientRect();
return box.right > viewportWidth + 1 || box.left < -1;
});
// Show only the outermost culprits, not every child inside them
const culprits = tooWide.filter((el) => !tooWide.includes(el.parentElement));
culprits.forEach((el) => console.log(Math.round(el.getBoundingClientRect().width), el));
console.log('Page wider than the window:',
document.documentElement.scrollWidth > viewportWidth);Typical hits are a container with a fixed width, a flex row, an image, a table or a single long string. Elements inside their own scroll area show up in the list too; that is fine as long as the last line reports false, meaning the page itself is not wider than the window. Then check in the same view whether content is missing and whether sticky elements take up too much space. The following six sections map the hits to the patterns we come across regularly in audits, each with its fix in CSS.
Break 1: Fixed widths and min-width
The classic is a width that was set for the desktop layout and was not checked again later: width: 960px on the content container, min-width: 300px on the sidebar, a form with width: 500px or an embedded video with fixed dimensions. At 320 CSS pixels (W3C, WCAG 2.2) each of these elements sticks out past the edge and drags the page along. The fix is usually the same: the fixed width becomes an upper limit, and the width itself follows the container.
/* Before: .content { width: 960px; } .sidebar { min-width: 300px; } */
.content {
width: 100%;
max-width: 60rem; /* an upper limit instead of a fixed width */
margin-inline: auto;
padding-inline: 1rem;
}
.sidebar { min-width: 0; }
/* Media stay inside the container and keep their aspect ratio (W3C, C37) */
img, video, svg { max-width: 100%; height: auto; }
iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* Form row: label and field stack when space runs short (W3C, C38) */
.form-row { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.form-row label { flex: 1 1 10rem; }
.form-row input,
.form-row select { flex: 2 1 14rem; width: 100%; max-width: 100%; }For images, the W3C describes exactly this pattern as technique C37: max-width: 100% keeps the image within its area, and an automatic height keeps the aspect ratio (W3C, C37). For forms there is technique C38: label and input sit side by side as long as there is room and stack when space runs short, because both are set up with width: 100% and max-width: 100%. Select lists in particular need the max-width, because as replaced elements they bring their own intrinsic size and would otherwise spill out of the grid (W3C, C38).
A special case is widths set by script, for example for sliders or flyout menus. The W3C lists technique SCR34 for this: size and position are calculated so that they scale with the text size (W3C, Understanding 1.4.10). A slider that reads its tile width from the window only once on load stays too wide after zooming until the page is reloaded. A ResizeObserver on the container fixes that. Carousels may scroll horizontally as long as each individual panel fits into 320 CSS pixels (W3C, Understanding 1.4.10); more on that in the article on accessible sliders and carousels.
Break 2: Flex and grid without wrapping
Flexbox and grid are the tools that make reflow work; the W3C lists both as sufficient techniques (W3C, C31 and C32). They break in two places, though. The first is a flex row without flex-wrap: header navigation, filter chips, button groups or product features sit in one line and push the last item past the edge. The second is less obvious: by default, flex and grid items take a minimum width from their content. According to MDN, with min-width: auto the min-content size applies to them unless another size is set (MDN, min-width). A long product name, a wide image or a table inside then makes the column as wide as its widest content, despite flex-wrap.
/* A flex row is allowed to wrap */
.filter-chips,
.button-group {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
/* A flex child may become narrower than its longest content */
.card-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.card-row > * { flex: 1 1 15rem; min-width: 0; }
/* Card grid without a media query, at most as wide as the container */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
gap: 1rem;
}
/* Page grid: a single column as the base, as in the example of technique C32 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) {
.layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}The grid column with minmax(0, 1fr) comes straight from the example in technique C32: the column may shrink instead of insisting on the width of its content (W3C, C32). The card row with repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) needs no media query: if two 15rem cards fit side by side, they sit side by side, otherwise they stack, and min(100%, …) prevents a single card from becoming wider than its container. Important for every change: the source order stays the reading order. The W3C warns against creating a different sequence with order or reversed direction, because the keyboard order then differs from the visible one (W3C, C31).
Break 3: Long words, URLs and lines of code
German texts bring a particular risk: long compound words. A word like “Barrierefreiheitsstärkungsgesetz” often does not fit into one line of a heading at 320 CSS pixels, and without a break opportunity the browser does not wrap it. The same goes for URLs, email addresses, IBANs, item numbers and voucher codes in any language. The W3C describes the case in technique C33: browsers break long URLs at characters such as slash, hyphen or question mark, and that is not enough in every case to prevent overflow (W3C, C33).
C33 names overflow-wrap: break-word as the fix (W3C, C33). In flex and grid items, the value anywhere is worth using. MDN describes the difference: with anywhere, the extra break opportunities count when the minimum width is calculated, with break-word they do not (MDN, overflow-wrap). In a flex column with min-width: auto, an element with break-word therefore stays as wide as the long word, while with anywhere it may shrink. For running text, hyphenation is the more readable solution. hyphens: auto hyphenates by language rules but requires the language to be set in the lang attribute; without it, browsers do not hyphenate (MDN, hyphens).
/* Long words, URLs, IBANs, item numbers */
.prose, .address, td, th {
overflow-wrap: anywhere; /* counts toward the minimum width (MDN) */
}
/* Running text: hyphenation by language rules, needs lang="en" */
.prose { hyphens: auto; }
/* Code keeps its indentation and scrolls only inside its own box */
pre {
max-width: 100%;
overflow-x: auto;
}Code and preformatted text are a deliberate exception. Indentation carries meaning there, in Python it is even part of the syntax, and the W3C therefore exempts such content insofar as its meaning would be lost on reflow (W3C, Understanding 1.4.10). A code block then scrolls horizontally, but inside its own box and not as part of the page. If you like, reduce the indentation under strong magnification; the W3C suggests this itself, because the indentation remains noticeable with large text (W3C, Understanding 1.4.10).
Break 4: Sticky bars that fill the window
At 400 percent zoom, not only the width shrinks to a quarter but the height as well. The W3C works it through on a laptop with 1280 × 1024 pixels (W3C, Understanding 1.4.10): with tabs, address bar and scrollbar, 400 percent leaves 318 pixels (W3C, Understanding 1.4.10) of width and only 236 pixels (W3C, Understanding 1.4.10) of height. A header that is 80 pixels tall on the desktop takes up more than a third of the height in this view. Add a promotion strip and a cookie notice, and hardly anything is left for the content.
The W3C therefore recommends releasing sticky regions when space is short. Technique C34 fixes header and footer only when a media query reports enough height, in the example from 480 pixels (W3C, C34). Below that, the bars scroll with the content. In Understanding 1.4.10 the W3C is more explicit: it strongly suggests making toolbars, menu bars, navigation and other sticky regions static in small viewports or letting users toggle them (W3C, Understanding 1.4.10).
/* Default: bars scroll with the content */
.site-header,
.cart-bar { position: static; }
/* Fix them only when there is enough height; 30em is 480 px at the default font size, as in C34 */
@media (min-height: 30em) {
.site-header { position: sticky; top: 0; }
.cart-bar { position: sticky; bottom: 0; }
/* Keep focus and jump targets clear of the bars (C43) */
html { scroll-padding-block: 5rem 4rem; }
}The change also helps with a second criterion. A sticky bar can hide the keyboard focus; WCAG 2.2 covers this as criterion 2.4.11 and names sticky headers and footers as well as non-modal dialogs as typical causes (W3C, Understanding 2.4.11). Where a bar is meant to stay, scroll-padding keeps the focused area clear, as technique C43 describes (W3C, C43). Cookie banners belong in the same check: a fixed banner that takes up half the height under strong magnification and whose buttons sit outside the visible area can violate several criteria at once. What a banner looks like that avoids this is shown in the article on accessible cookie banners.
Break 5: Tables without their own scroll area
Data tables are exempt from reflow, because row and column headers form a two-dimensional relationship with the data cells (W3C, Understanding 1.4.10). The exception covers only the table itself, though. If a wide size chart sits directly in the page flow, the whole page becomes wider, and the paragraphs before and after it can only be read by scrolling sideways. The W3C shows exactly this case as an example of a failure (W3C, Understanding 1.4.10). The fix is a scroll area of its own around the table.
<!-- The exception covers only the table, hence a scroll area of its own (W3C, Understanding 1.4.10) -->
<div class="table-scroll" role="region" aria-labelledby="size-table-caption" tabindex="0">
<table>
<caption id="size-table-caption">Women's size chart, measurements in centimeters</caption>
<!-- thead and tbody as before -->
</table>
</div>
<style>
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline: 3px solid #6c32bd; outline-offset: 2px; }
</style>tabindex="0" makes the area reachable by keyboard so it can be moved with the arrow keys; role="region" with a name taken from the table caption tells screen readers what scrolls there. Two limits of the exception matter. First, the individual cells must still reflow: a cell holding a whole paragraph may not become wider than the 320 CSS pixels (W3C, Understanding 1.4.10). Second, the exception does not cover the heading, search field or pagination around the table (W3C, Understanding 1.4.10). And it applies only to content that genuinely needs the two-dimensional layout: data tables and grids, such as an electronic program guide (W3C, Understanding 1.4.10). A table used only for layout, such as a two-column form or a row of tiles with running text, can reflow as a list or a row of cards. How to mark up data tables accessibly otherwise is covered in the article on accessible data tables.
Break 6: Banners, dialogs and menus with a fixed height
Whatever wraps in width grows in height. A promotion banner with height: 300px, a dialog with a fixed height or a product tile with overflow: hidden clips the wrapping text as soon as it needs more lines. With dialogs, the close button or the confirmation can also slip below the visible area while the dialog cannot be scrolled. The rule is therefore: minimum heights instead of fixed heights, and a scroll area of its own inside the dialog that is at most as tall as the window. More on building accessible dialogs is in the article on accessible modals and overlays.
/* The banner grows with its text instead of clipping it */
.promo-banner { min-height: 12rem; height: auto; overflow: visible; }
/* Dialog: at most as wide and tall as the window, the content scrolls inside */
.dialog {
width: min(36rem, 100% - 2rem);
max-height: calc(100dvh - 2rem);
overflow-y: auto;
}
/* The close button stays visible while the dialog scrolls */
.dialog-close { position: sticky; top: 0; }For menus, the way out is a button. The W3C describes the pattern itself: as zoom increases, navigation items first move into a “More” menu and finally behind a menu button, and all information and functionality remain available (W3C, Understanding 1.4.10). The last part is what counts. Navigation that is simply hidden at 320 CSS pixels is not reflow but a loss. How a menu button works with keyboard and screen reader is covered in the article on accessible navigation.
Text in an image cannot wrap at all. Promotion banners whose message is burned into the graphic only become larger and blurrier when zoomed and run off the screen. The article on images of text shows how to rebuild them with real HTML text over a background image.
What must not disappear on reflow
The most convenient way to get a layout down to 320 CSS pixels is display: none. The W3C has a failure technique of its own for this: F102 describes content that disappears at a viewport width of 320 pixels although it was available in wider views (W3C, F102). Less space may lead to a different arrangement, including a disclosure, a dialog or a link to another view. It must not lead to missing information or functionality. F102 names five typical cases (W3C, F102):
- A side column with links to blog entries disappears entirely after reflow instead of appearing further down in the single-column view.
- Labels above text inputs are hidden and replaced by placeholder text, without a label appearing again when the field receives focus.
- Sections of text disappear without being available through a disclosure widget.
- Images that carry information disappear without a link or an equivalent alternative.
- The global search field disappears without an icon, a menu option or a search page of its own.
In practice, it pays to look through the media queries: every rule with display: none below a certain width is a checkpoint. Decorative elements may go; content and functions need another place. Candidates include field labels in narrow forms, notes on delivery time or shipping costs, and shop filters that simply drop out in the narrow view instead of moving behind a button.
Permitted exceptions and where they end
Not everything can reflow without losing its meaning. As examples of content that requires a two-dimensional layout, WCAG names images required for understanding, such as maps and diagrams, as well as video, games, presentations, data tables and interfaces where toolbars must stay in view while content is edited (W3C, WCAG 2.2). Scrolling in two directions is permitted for these parts.
The exception applies only to the affected part, not to the page (W3C, Understanding 1.4.10). Next to a map, the search field, result list and filters must reflow; the article on maps and store locators shows this for a store finder. Even if an exception makes the whole page scroll horizontally, such as a video without max-width: 100%, the page passes as long as the rest of the content reflows. The W3C still advises avoiding the scrollbar, because it suggests content beyond the edge and people then search for it in vain (W3C, Understanding 1.4.10).
Do not block zoom
Reflow assumes that the page can be enlarged at all. On mobile devices, the viewport meta element decides that. 19 percent (Web Almanac 2025) of mobile and 21 percent (Web Almanac 2025) of desktop websites restrict scaling, with user-scalable=no or a limited maximum-scale. MDN advises leaving zoom open: WCAG requires a minimum of 2× scaling (MDN, viewport meta), and the best practice is to enable 5× zoom (MDN, viewport meta).
<!-- Right: zooming stays available -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Wrong: blocks pinch zoom -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">Criterion 1.4.4 still applies alongside it: text must be resizable without assistive technology up to 200 percent (W3C, WCAG 2.2) without loss of content or functionality. The two criteria interlock but are not the same. Reflow does not require a particular text size, only the wrapping; if a page reduces its text size for the narrow view at 400 percent, an enlargement to 200 percent must still be achievable in some way (W3C, Understanding 1.4.10). Which font sizes and spacing hold up is covered in the article on accessible typography.
Build reflow into components
Fixes to individual pages rarely last. If you maintain a component library, check every component there at a container width of 320 CSS pixels: teaser, card, form row, table, dialog, header. Container queries help, because a component then responds to the width of its placement rather than to the width of the window. A card in the sidebar thus reflows correctly even at a window width of 1280 pixels, because its space there is narrow. The same principle, the component follows its placement, also applies to heading levels in components.
/* The card follows its placement, not the window */
.card-slot { container-type: inline-size; }
.card { display: grid; gap: 0.75rem; }
@container (min-width: 28rem) {
.card { grid-template-columns: 8rem minmax(0, 1fr); }
}For design and acceptance, a fixed test width works well: every new template is designed, or at least shown, at 320 CSS pixels, rather than checking only the home page after launch. An automated screenshot comparison at this width catches regressions, and a pass with real 400 percent zoom adds coverage for sticky elements and dialogs. How to write such rules into an accessible design system is covered in a separate article.
How we test and fix reflow
In a WCAG audit we assess 1.4.10 like every level A and AA criterion per view, not just on the home page: we measure reflow at 320 pixels width, in the desktop and smartphone layout and in the states that only open after a click. Every barrier is listed with view, screenshot and description, together with a solution approach including a code example. Because breaks often originate in shared components, one fix there frequently resolves several findings at once. If you tackle the fixes yourself, you can work in this order:
- Open all templates and states in a 1280 CSS pixel window at 400 percent zoom: home page, category, product, cart, checkout, customer account, forms and dialogs.
- For each break, identify the culprit and assign it to a pattern: fixed width, flex or grid, long string, sticky bar, table or fixed height.
- Justify exceptions: map, diagram, video and data table get a scroll area of their own, and everything around them reflows.
- Check hidden content against F102: whatever is missing at 320 CSS pixels needs another way in.
- Implement the fix in the component and verify it at a container width of 320 CSS pixels with keyboard and screen reader.
- Add the test width to design guidelines and automated tests so that reflow survives in new templates.
Six questions for every horizontal scrollbar
We implement the fixes as part of accessible web development in your existing code, without a rebuild: widths, grids, bars, tables and dialogs are adjusted in the shared components and verified with keyboard, screen reader and zoom. So that new templates bring reflow along from the start, there is training for design and development.
Sources
Related Articles
Headings in Components: Setting Levels Correctly in Code
Headings in components: the level per placement as a parameter, multiple h1 elements, sectioning elements, hidden headings and role=heading under WCAG 2.2.
Empty Links and Buttons: Giving Controls a Clear Name
Empty links and buttons are among the most common WCAG findings. Fix patterns for icon buttons, image links and “more” links, checked via the links list.
Customers over 65: removing barriers in your online shop
Three in four people over 65 are online, and 76 per cent of them shop there. Which WCAG criteria slow this clientele down and in which order to fix them.