iMac 24" screen size & viewport

The iMac 24" renders web pages at a CSS viewport of 2240 × 1260 in portrait (1260 × 2240 in landscape).

▶ Preview a website at 2240×1260

What these numbers mean

2240 × 1260 is the CSS viewport size — the coordinate space your layout, media queries and vw/vh units work in. It is not the hardware pixel count: the iMac 24" packs more physical pixels behind each CSS pixel (its device pixel ratio), which is why images meant for it should be exported at 2× or 3×.

For a desktop / laptop this size, a layout should already be at its multi-column / tablet breakpoint.

Targeting it in CSS

/* Styles for viewports up to the iMac 24" */
@media (max-width: 2240px) {
  .container { padding-inline: 16px; }
}

/* Exactly the iMac 24" in portrait */
@media (width: 2240px) and (height: 1260px) { /* … */ }

Common things that break at 2240px wide

Test it live: open ViewOnPhone at 2240×1260, paste your URL and toggle portrait / landscape.

Other Desktop & laptop sizes

MacBook Pro 16"1728 × 1117 MacBook Pro 14"1512 × 982 MacBook Air 15"1440 × 900 Surface Pro 111440 × 960 Surface Laptop 71504 × 1000 Dell XPS 151920 × 1200 HP Spectre x3601920 × 1080 Laptop HD 768p1366 × 768
Donate