
Content-Driven Breakpoints: A Better Strategy
Stop choosing breakpoints by device class. As a rule of thumb, a content-rich site can work with two to four breakpoints, not six to eight. Range syntax and em units complete the move.
TL;DR: Stop choosing breakpoints by device class. Drag the viewport in DevTools, stop where your content breaks, and label each break by purpose. As a rule of thumb, not a measured count, a content-rich site can work with two to four breakpoints rather than six to eight. Pair the move with range-syntax media queries, em units in conditions, and container queries for component-local layout. The result is fewer breakpoints, fewer regressions, and a system that survives the next device class.
The anti-pattern: device-class breakpoints
The 480 / 768 / 1024 breakpoint scheme is older than the device matrix it claims to describe. Its 768px value lines up with an iPad: the Web Almanac 2022 CSS chapter notes that the 767/768px pair corresponds to an iPad in portrait mode. The scheme reflects a time when "phone," "tablet," and "laptop" were treated as tidy categories with predictable widths. In 2026 that matrix has stretched into foldables that switch from a phone-width cover screen to a tablet-class inner screen mid-session, ultrawide monitors (for example, 3440-pixel-wide panels), Chromebooks in split view (for example, around 600px), and laptops in window-snap mode that land anywhere in between.
Choosing breakpoints by device class produces two predictable failures. First, the breakpoints land in places your content does not break — a layout that holds together at 769px and breaks at 940px gets no help from a 1024px breakpoint. Second, the breakpoints fragment between device classes, leaving awkward "tween" widths where the layout is technically responsive but obviously not designed-for. Bootstrap-style xs / sm / md / lg / xl / xxl scales perpetuate the same pattern under different names.
The underlying mistake is letting an industry shorthand for "which device is reading this" stand in for "where does my content actually break." Those are different questions, and 2026 hardware has finally made the difference too expensive to ignore.
What content-driven means
Open the site in DevTools, set the viewport to 320px, then drag the handle slowly outward. Stop wherever the content asks for a layout change — text wrapping awkwardly, line measure running past about 75 characters (a typographic rule of thumb), a card grid where cards have become too narrow to scan, a navigation that overflows. Each stop is a breakpoint candidate; the width at which it happens is incidental.
Annotate each breakpoint by purpose, not by device. "Sidebar appears at 56em" describes what is happening. "Tablet breakpoint at 768px" describes a device that may or may not be the actual reader. The first label survives a foldable; the second is tied to one device width, an iPad in portrait mode.
As a rule of thumb, not a measured count, a content-rich site can work with two to four breakpoints. The Web Almanac 2022 CSS chapter does not report a per-page breakpoint count, but it does show how entrenched the device-class habit is: the most common breakpoints were a min-width of 768px (57% of pages) and a max-width of 767px (51%), which the chapter notes corresponds to an iPad in portrait mode. Sites with eight breakpoints are not more responsive than sites with three; they are more brittle, because every breakpoint is a regression risk during redesign. The right count is the number that matches your content's actual breaks, and that number can be smaller than the one your design system started with.
Range syntax replaces min-width and max-width pairs
CSS Media Queries Level 4 added range syntax that finally matches how designers describe breakpoint ranges. The old form required two separate conditions joined with and. Because the min- and max- prefixes both include the boundary value, authors generally offset one of the values so that adjacent queries do not both match. Media Queries Level 4 describes a more precise fractional value as one way to keep fractional viewport widths (which can occur with non-integer pixel densities, for example on high-dpi displays or when zooming) from falling into the gap that this leaves, and calls range context queries the more appropriate solution. The old pattern looks like this:
/* Old — verbose, fractional-pixel hack */
@media (min-width: 48em) and (max-width: 63.999em) {
.sidebar { display: none; }
}
/* Old — chained when the range had three segments */
@media (min-width: 64em) and (max-width: 79.999em) {
.sidebar { width: 16rem; }
}Range syntax replaces the verbose form with comparison operators. The condition reads logically and the boundary is unambiguous:
/* 2026 — range syntax, Baseline 2023 */
@media (48em <= width < 64em) {
.sidebar { display: none; }
}
@media (64em <= width < 80em) {
.sidebar { width: 16rem; }
}The syntax reached Baseline 2023 and is implemented across every evergreen browser (as of Nov 2026, per web-features and MDN browser-compat-data). Three details earn their keep in production. First, <= is inclusive while < is exclusive, which means adjacent ranges no longer overlap and the fractional 63.999em workaround disappears. Second, single-bound queries (@media (width >= 48em)) read more naturally than @media (min-width: 48em). Third, the same operators work for any range-type media feature, not only width: @media (aspect-ratio >= 16/9) and @media (resolution >= 2dppx) are valid because Media Queries Level 4 defines both features as range type. The MDN guide Using media queries walks through the operators with width and height examples.
em over px in breakpoint conditions
The unit you choose for breakpoint conditions is an accessibility decision. Pixel breakpoints ignore the user's font size preference; em breakpoints respect it.
A reader who has set their browser default to 20px instead of 16px experiences em-based breakpoints proportionally — 48em becomes 960px instead of 768px, which keeps the relationship between content size and layout breakpoints intact. Pixel breakpoints fire at the same width regardless of font scaling, which means a layout designed for "tablet width with 16px body text" lands on a reader whose body text is actually 20px, and the line measure collapses.
The conversion is mechanical. With a 16px browser default, divide pixel breakpoints by 16: 480px becomes 30em, 768px becomes 48em, 1024px becomes 64em, 1280px becomes 80em. Use these as the working values and never look back at the pixel numbers.
/* 480px → 30em, 768px → 48em, 1024px → 64em */
@media (30em <= width < 48em) { /* small */ }
@media (48em <= width < 64em) { /* medium */ }
@media (width >= 64em) { /* large */ }This is more than a stylistic preference. WCAG 1.4.4 Resize text, a Level AA success criterion, requires that, except for captions and images of text, text can be resized without assistive technology up to 200 percent without loss of content or functionality. The W3C Understanding document says content meets the criterion if it can be scaled up to 200% using at least one text-scaling mechanism supported by user agents, and full-page zoom is one such mechanism; zooming may also make a different breakpoint active, so pixel breakpoints do not fail the criterion by themselves, although it should still be possible to get 200% text enlargement in some way. What em breakpoints add is that the layout also follows a reader's larger default font size. The code change is small (the same conditions, a different unit), but each converted breakpoint still needs a visual QA pass, because layouts will now shift for readers with larger default font sizes — which is the point of the change.
When you still reach for media queries vs container queries
Size container queries reached Baseline 2023 (as of Nov 2026, per web-features) and changed which question a query answers. A media query asks "how wide is the viewport"; a container query asks "how wide is my slot." Those questions have different right answers, and the two tools coexist rather than compete.
Global concerns belong to @media. Theme (prefers-color-scheme), motion (prefers-reduced-motion), input modality (pointer: fine, pointer: coarse), hover capability (hover: hover), viewport orientation, and high-resolution displays are all properties of the user agent, not the component. A component does not need its own opinion on whether the user prefers dark mode.
Component-local layout belongs to @container. A card placed in a 320px sidebar and the same card in a 720px main column have identical viewport widths but different slot widths, and the layout decision should respond to the slot. Cards, sidebars, media objects, and reusable widgets are all container-query candidates the moment they appear in more than one layout slot.
/* @media for global concerns */
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }
@media (hover: hover) { .tooltip { display: block; } }
/* @container for component-local layout */
.card { container-type: inline-size; }
@container (inline-size > 30em) {
.card-body { display: grid; grid-template-columns: auto 1fr; }
}Page-level scaffolding (header, main, footer, primary navigation) fits @media, because there is one page and the viewport is the right anchor. Reusable widgets inside the scaffolding fit @container, because they appear at multiple slot widths. Using both on one page is expected — the question is which query asks the right question for the element at hand.
Diagnostic checklist for the next planning cycle
- Open the site in DevTools at 320px width, drag the viewport handle slowly to the largest screen you support, and list every content break by purpose. Annotate each with what is breaking, not which device class would match.
- Compare the resulting list against your current breakpoint set. If you have six or more breakpoints, identify which ones map to actual content breaks and which were inherited from a device-class framework.
- Migrate
min-width/max-widthpairs to range syntax (@media (48em <= width < 64em)) on the breakpoints you keep. The condition reads logically and the fractional-pixel offsets disappear. - Convert
pxbreakpoint conditions toemso user font scaling is respected. Test with the browser default set to 20px — your layout should expand its breakpoints proportionally. - Identify reusable components that appear in more than one layout slot (cards, media objects, sidebar widgets) and refactor their viewport
@mediaqueries into@containerqueries. Keep page-level scaffolding in@media— the two are not in competition.
Content-driven breakpoints, range syntax, em units, and container queries are independent improvements that compound. Adopted together, they replace a device-class matrix with a system that asks the right question at the right scope. The next device class — whatever shape it takes — will not require a new breakpoint scheme, because the system was never built around device classes in the first place.