UICheck

BasicsUpdated 12 October 20264 min read

CSS breakpoints: which screen sizes to design for

A breakpoint is the width where your layout changes, for example from one column to two. Picking breakpoints from a list of devices goes out of date every year. A better rule: add a breakpoint where your content starts to look wrong, and test the widths in between as carefully as the breakpoints themselves.

What it looks like

The same page on an iPhone 17 (402px wide), with the problem and then the fix.

Before
Before: A three-column grid squeezed onto a phone: words break and the cards are too narrow to read.
A three-column grid squeezed onto a phone: words break and the cards are too narrow to read.
After
After: One column below 768px, three columns from 768px up.
One column below 768px, three columns from 768px up.

Common screen widths today

Screen widths in CSS pixels are smaller than the resolution in the spec sheet, because phones and many laptops show 2–3 device pixels per CSS pixel.

  • Phones: 360–430px wide in CSS pixels (iPhone 17: 402px, Galaxy A55: 412px, small Androids: 360px)
  • Tablets: 744–834px upright (iPad: 820px), 1024–1366px sideways
  • Laptops: 1280–1536px (a common Windows laptop shows 1536px at 125% scaling)
  • Desktops: 1920px and wider

A sensible starting set

Most sites do well with a handful of breakpoints, written mobile-first (styles for phones by default, then min-width queries for larger screens):

  • Phones: the default, no media query (roughly 320–479px)
  • Large phones: min-width 480px
  • Tablets: min-width 768px
  • Laptops: min-width 1024px
  • Desktops: min-width 1280px, with a max-width on the content so lines don’t get too long
.grid { display: grid; gap: 16px; }@media (min-width: 768px)  { .grid { grid-template-columns: 1fr 1fr; } }@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

Breakpoints in Bootstrap and Tailwind

If your site uses a framework, its breakpoints are already set. They are a reasonable default, and you can add your own in between.

  • Bootstrap 5: sm 576px, md 768px, lg 992px, xl 1200px, xxl 1400px
  • Tailwind CSS: sm 640px, md 768px, lg 1024px, xl 1280px, 2xl 1536px

min-width or max-width?

Mobile-first CSS uses min-width: phone styles are the default and each query adds to them for wider screens. Desktop-first uses max-width and overrides desktop styles for smaller screens. Mixing both in one stylesheet is where most breakpoint bugs come from: two queries that overlap at exactly 768px, or a gap of one pixel where neither applies.

/* Mobile-first: no gap, no overlap */@media (min-width: 768px) { ... } /* Desktop-first: 767.98px avoids overlapping with a min-width: 768px query */@media (max-width: 767.98px) { ... }

Let content decide

Slowly widen the browser and watch the page. Where something looks cramped, too wide or awkward, that is where a breakpoint belongs, even if it is 900px and not a device size.

Major and minor breakpoints

Major breakpoints change the layout: one column becomes two, the menu becomes a full navigation bar. Minor breakpoints fix one component: a heading that is a little too big at 600px, a card padding that is too tight at 900px. Keep the major ones few and site-wide; add minor ones in the component’s own CSS where its content needs them.

Use flexible layouts between breakpoints

Fluid sizes need fewer breakpoints. Grid with auto-fit, clamp() for type and min() for widths adapt smoothly at every width.

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }h1 { font-size: clamp(2rem, 5vw, 3.5rem); }

Container queries: breakpoints for components

A card in a narrow sidebar and the same card in a wide main column need different layouts at the same screen width. Container queries, supported in all modern browsers, let a component respond to the width of its container instead of the screen.

.card-list { container-type: inline-size; }@container (min-width: 520px) {  .card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; }}

Test the widths in between

Tip

Tablet and small-laptop widths (about 800–1100px) break most often, because few designs are drawn for them.

Bugs hide between breakpoints: a menu that wraps at 830px, a table that overflows at 700px. Test common device widths (360, 390, 768, 1024, 1280, 1440) and sweep everything in between.

Checklist

Questions

What are the standard CSS breakpoints?

There is no official standard. Common choices are 480, 768, 1024 and 1280px, but the right ones are where your own layout needs to change.

Mobile-first or desktop-first?

Mobile-first (min-width queries) usually needs less CSS and makes phones the default, which is where most visitors are.

How many breakpoints do I need?

Usually three or four. Fluid grids and clamp() for type mean you need fewer.

What are Bootstrap’s breakpoints?

Bootstrap 5 uses sm 576px, md 768px, lg 992px, xl 1200px and xxl 1400px, all as min-width.

What are Tailwind’s breakpoints?

Tailwind CSS uses sm 640px, md 768px, lg 1024px, xl 1280px and 2xl 1536px, all as min-width.

Should breakpoints be in px or em?

Either works in modern browsers. em-based queries also respond when someone sets a larger default font size, which some teams prefer for accessibility.

Find these bugs before your client does

Free account, 5 checks a day, no card. UICheck finds sideways scroll, cut-off text, overlaps and small tap targets on every screen.