Native resolution 4480 × 2520 px at 2× · 218 PPI · 23.5″ · 16:9. Design at 2240 × 1260 and export assets at 2×.
| Property | Value |
|---|---|
| CSS viewport (portrait) | 2240 × 1260 px |
| CSS viewport (landscape) | 1260 × 2240 px |
| Native resolution | 4480 × 2520 px |
| Device pixel ratio | 2× |
| Pixel density | 218 PPI |
| Screen diagonal | 23.5 in |
| Panel size | 20.55 × 11.56 in |
| Aspect ratio | 16:9 |
| Total pixels | 11.29 MP |
| Released | 2021 |
| Operating system | macOS |
Among the 37 desktop and laptop displays on this site, the iMac 24″ (M1) has the 6th largest CSS viewport area. Its 2240 px width is 569 px above the 1671 px average for this category.
Targeting the iMac 24″ (M1) in CSS
Device-specific media queries are brittle — a new model with the same width will not match. Use them for genuine per-device fixes only, and prefer width buckets for layout.
/* Target iMac 24″ (M1) specifically */
@media only screen
and (device-width: 2240px)
and (device-height: 1260px)
and (-webkit-device-pixel-ratio: 2) {
/* … */
}
/* More useful in practice — the width bucket it falls into */
@media (min-width: 2240px) { /* … */ }
Compare with other Mac & Displays models
| Device | CSS viewport | Native | DPR | PPI | Diagonal |
|---|---|---|---|---|---|
| iMac 24″ (M1) | 2240 × 1260 | 4480 × 2520 | 2× | 218 | 23.5″ |
| MacBook Pro 16″ (M1) | 1728 × 1117 | 3456 × 2234 | 2× | 254 | 16.2″ |
| MacBook Pro 14″ (M1) | 1512 × 982 | 3024 × 1964 | 2× | 254 | 14.2″ |
| iMac 27″ 5K | 2560 × 1440 | 5120 × 2880 | 2× | 218 | 27″ |
| Studio Display | 2560 × 1440 | 5120 × 2880 | 2× | 218 | 27″ |
| MacBook Air 13″ (M2) | 1470 × 956 | 2560 × 1664 | 2× | 224 | 13.6″ |
| MacBook Pro 13″ (M2) | 1440 × 900 | 2560 × 1600 | 2× | 227 | 13.3″ |
| MacBook Pro 13″ (M1) | 1440 × 900 | 2560 × 1600 | 2× | 227 | 13.3″ |
| MacBook Air 13″ (M1) | 1440 × 900 | 2560 × 1600 | 2× | 227 | 13.3″ |
Questions about the iMac 24″ (M1) screen
What is the screen size of the iMac 24″ (M1)?
The iMac 24″ (M1) has a 23.5-inch display. In CSS the viewport measures 2240 × 1260 px in portrait, and the panel itself has 4480 × 2520 physical pixels at 218 PPI.
What resolution should I design for on the iMac 24″ (M1)?
Design at 2240 × 1260 and export assets at 2×. That gives you 4480 × 2520 px images, which is exactly what the panel renders. Designing directly at 4480 × 2520 means every measurement is 2 times larger than the CSS values you will write.
What is the device pixel ratio of the iMac 24″ (M1)?
The iMac 24″ (M1) reports a device pixel ratio of 2. One CSS pixel therefore covers 4 device pixels. You can read it in JavaScript with window.devicePixelRatio.
Which other devices have the same viewport as the iMac 24″ (M1)?
1 other device shares the 2240 × 1260 CSS viewport: iMac 24″ (M4). A layout that works on one works on all of them.
Related
window.innerWidth/innerHeight reported by the stock browser with no browser chrome. See methodology and sources.