Test responsive layouts with awkward content
A layout can fit several screen widths and still break when the content changes. Test long titles, missing images, empty fields, and zoom as well as viewport width. For example, it may work at:
375px
768px
1440px
Those widths alone tell you little about how the layout handles a long URL or a missing image. Change the sample content before deciding that the layout works.
Start with a very long title
Replace:
New project
with:
A Much Longer Project Title That Wraps Across Several Lines and Keeps Going
Check what changes:
- card height;
- neighbouring alignment;
- button position;
- overlap;
- truncation.
If the layout depends on every title being one line, the design should make that constraint explicit.
Test a one-word title too
Hi
Short content can also expose strange alignment. A component designed around a three-line heading may look empty when the text is tiny.
Add a long unbroken string
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
or a long URL. If the entire page becomes horizontally scrollable, fix the content area. A useful defensive rule:
.prose {
overflow-wrap: anywhere;
}
Remove the image
What happens when this does not exist?
<img ...>
A card should not leave a mysterious empty column unless the design intentionally reserves that space. Modern CSS can react:
.card:not(:has(img)) {
grid-template-columns: 1fr;
}
Or the template can simply avoid rendering the media wrapper.
Break the image URL
Missing image and broken image are different states. Use:
<img
src="/not-found.jpg"
alt="Example photograph">
Check that the layout stays stable and the alt text still explains the image.
Test portrait and landscape images
Do not use ten perfectly cropped 16:9 demo images. Try:
portrait phone photo
square image
very wide panorama
small old image
Then decide whether:
object-fit: cover;
is actually the right behaviour.
Make numbers bigger
This:
9
may become:
12,845
This:
€99
may become:
€12,499.00
Dashboards, price cards, and badges should be tested with realistic maximum values.
Test empty data
Try:
no description
no tags
no author
no date
no CTA
If the component still renders empty separators or huge gaps, the template or CSS needs adjustment.
Increase browser zoom
Set zoom to:
200%
and navigate the page. This is a fast way to reveal:
- fixed heights;
- clipped text;
- navigation that no longer fits;
- dialogs too large for the viewport.
Do not only test desktop width at 100% zoom.
Change the language
Even if your site is currently one language, temporary translation testing is useful. Replace:
Save
with a much longer label. Try German-style long compounds or text with different punctuation. For RTL layouts, use real Arabic or Hebrew samples rather than simply reversing English alignment.
Disable JavaScript
What remains? For a content site, I want to see:
- navigation;
- article text;
- images;
- forms that can submit normally where possible;
- links.
Optional enhancements can disappear. The page itself should not.
Throttle the network
A layout that looks good when every image loads instantly may behave differently when requests take several seconds. Use browser DevTools to simulate a slower connection. Watch for:
- layout shift;
- blank media areas;
- invisible web fonts;
- controls appearing late.
Block one third party
If the page uses:
video embed
chat
analytics
map
social post
block that domain temporarily. Does the rest of the page keep working? Third-party failure should ideally stay local.
Use the keyboard
Press Tab through the page. Check:
- visible focus;
- logical focus order;
- hidden controls;
- off-screen focus;
- modal behaviour.
Test keyboard navigation as well as the visual layout.
Narrow widths between breakpoints
Do not test only standard device presets. Try widths such as:
413px
527px
911px
1137px
The web does not come in six device sizes. Breakpoints should respond to content, not a list of popular phones.
A checklist for the component
Choose the cases that apply to the component:
very long text
very short text
long URL
missing image
broken image
odd image ratio
large number
empty optional field
200% zoom
keyboard navigation
slow network
JavaScript disabled
random viewport widths
Not every component needs every test. I would start with the content most likely to break its layout, then check keyboard access and zoom before polishing the default view.