Why patients zoom, and why sideways scrolling is a problem
Many patients enlarge text. Some are older, some have low vision, and some simply left their reading glasses at home. When a page is built well, enlarging the text just makes the lines wrap and the page gets longer. When it is built badly, a line runs off the right edge, and the reader has to drag the page left and right to follow each sentence.
The W3C's Reflow criterion describes this plainly: content should present without loss of information and without scrolling in two directions at a width equivalent to 320 CSS pixels. It explains that this width is what a 1280 pixel wide desktop window becomes at 400 percent zoom. People who need big text find it tiring and easy to lose their place if they must scroll to read long lines. Pop-up menus and tooltips that vanish while a zoomed-in visitor moves toward them cause a similar problem, which our guide on menus and tooltips that vanish before a client can read them covers.
Check it yourself in two minutes
- 1Open the page on a laptop in Chrome in a normal window.
- 2Hold Control (or Command on a Mac) and press the plus key until the zoom reads 200 percent, then keep going to 400 percent.
- 3Scroll down the page. Text should wrap, the menu should fold into a button, and nothing should push the page wider than the window.
- 4Look for a horizontal scroll bar at the bottom. If one appears, note what is causing it: a table, an image, a form field or a button row.
- 5Press Control and zero to return to normal size.
Then repeat on a phone. Turn the phone sideways and back, and also raise the text size in the phone's accessibility settings. If the page still fits the screen width in all three, it is in good shape.
What usually breaks
| Cause | Typical fix |
|---|---|
| A wide table of hours or insurance plans | Let the table scroll inside its own box, or restack each row as a short list on phones |
| An image or banner with a fixed width | Set the image to scale down to its container's width |
| A long web address or email shown as text | Allow it to break across lines |
| Two columns that stay side by side | Stack them in one column on narrow screens |
| A pop-up or cookie banner wider than the screen | Set it to fit the window and keep its close button reachable |
Tables get a pass, but their cells do not
The W3C accepts two-directional scrolling for content that really needs it, such as data tables, maps and video. It adds that parts inside those, such as each table cell, still need to fit well. For a practice, that means a long insurance table can scroll sideways in its own frame, but the sentence above it must wrap normally. Better still, replace the table with a list if it has only two columns.
Resizing text without breaking the layout
A related criterion, Resize Text, asks that text can be enlarged to 200 percent without assistive technology and without losing content or function. Test that too by zooming the text alone through the browser settings. Buttons whose labels get cut off, or a phone number that overlaps the logo, are signs that the layout was built to a fixed height. Patients who widen the spacing between lines and letters can break the same boxes, as our guide on text spacing that survives a patient's own reading settings shows with a ten-minute test. Words baked into a banner image will not enlarge cleanly at all, which is why our guide on text inside hero banners and logo strips recommends real text.
Hand your designer the list of broken spots with a screenshot at 400 percent. Ask for the fix on the template, so every page inherits it, rather than patching one page at a time. If the page also has trouble loading, our mobile first indexing guide explains why the phone version is the one Google reads, and the print-friendly version guide covers another layout worth checking.
Frequently asked questions
What is 320 CSS pixels?
It is the narrow width the W3C uses to test reflow. A desktop window 1280 pixels wide, zoomed to 400 percent, behaves like a 320 pixel screen, so zooming a laptop is a quick way to test.
Do tables have to reflow?
The W3C allows data tables to scroll in two directions when the layout is needed to understand them. Anything outside the table, including the surrounding sentences, should still wrap normally.
Will fixing this help our rankings?
We cannot promise that. A page that fits the screen is easier for patients to read, and Google reads the phone version first, so a broken phone layout is worth fixing either way.
Does zooming the browser equal increasing the phone's text size?
They are different settings, so test both. Browser zoom scales the whole page, while a phone's text size setting changes only the type, which can break fixed-height boxes.
Who fixes a sideways scrolling page?
Your web designer or the theme's support team. Give them the page address, the zoom level where it breaks and a screenshot, and ask for a template-level fix.
Sources
- W3C Web Accessibility Initiative — Understanding Success Criterion 1.4.10: Reflow
- W3C Web Accessibility Initiative — Understanding Success Criterion 1.4.4: Resize Text