390 × 844
Aspect Ratio
195:422
Pixel Density
460 PPI
iPhone 12 Viewport
The iPhone 12 has a logical CSS viewport size of 390px width and 844px height.
Web designers and developers should use these dimensions to set accurate media query breakpoints for responsive layouts.
This device features a pixel density of 460 PPI, utilizing a high-DPI scaling factor for sharp rendering on iOS.
Technical Specifications
| Logical Width (CSS) | 390px |
|---|---|
| Logical Height (CSS) | 844px |
| Operating System | iOS |
| Release Year | 2020 |
CSS Media Query Snippet
/* Target iPhone 12 specifically */
@media only screen and (max-width: 390px) {
/* Responsive styles go here */
}
Frequently Asked Questions
What is the CSS resolution of iPhone 12?
The logical CSS resolution is 390px x 844px. Browsers use these dimensions to calculate layout flow and media queries, regardless of the physical pixel count.
How do I target iPhone 12 in CSS?
Use a standard media query like @media (max-width: 390px) to apply specific styles for screens of this size or smaller.