πŸ“š 50+ Expert Articles

The Screen Resolution Blog

Human-written guides, tutorials and insights on screen resolution, display technology, responsive design and web development.

Guide

What Is Screen Resolution? The Complete 2025 Guide

Screen resolution is one of those terms everyone uses but few people fully understand. If you have ever wondered why your beautiful 4K monitor sometimes shows blurry images, or why your website looks different on a phone versus a desktop, screen resolution is often the answer. This guide covers everything you need to know.

The Simple Definition

Screen resolution refers to the number of pixels your display can render, expressed as width times height. A resolution of 1920 by 1080, also called Full HD or 1080p, means your screen is 1,920 pixels wide and 1,080 pixels tall, giving you roughly 2.07 million total pixels. Each of those tiny dots combines to form the images, text, and video you see every day.

Why Pixels Per Inch (PPI) Matters

Raw resolution numbers alone do not tell the whole story. What really determines sharpness is pixel density, measured in pixels per inch (PPI). A 27-inch monitor at 1920 by 1080 has a PPI of roughly 81, which looks noticeably soft up close. The same resolution on a 14-inch laptop screen produces about 157 PPI β€” considerably sharper. Apple's Retina displays start at around 220 PPI.

To calculate PPI, use: PPI = √(width² + height²) ÷ diagonal screen inches. Use our built-in PPI calculator on the homepage for instant results.

Common Screen Resolutions in 2025

720p (1280 Γ— 720) β€” HD. Still used on budget laptops. Looks fine on small screens.

1080p (1920 Γ— 1080) β€” Full HD. Most common laptop and desktop resolution in 2025.

1440p (2560 Γ— 1440) β€” QHD. Popular for gaming monitors. Noticeably sharper than 1080p.

4K UHD (3840 Γ— 2160) β€” Four times the pixels of 1080p. Stunning for video editing and photography.

5K (5120 Γ— 2880) β€” Found on Apple Pro Display XDR. Exceptional for professional creative work.

8K (7680 Γ— 4320) β€” Emerging standard for very large displays and professional video production.

Screen Resolution vs Viewport Size

Your screen resolution is the total physical pixel count of your hardware panel. Your browser viewport is the CSS pixel area that web content renders into β€” always smaller because it excludes your taskbar, browser toolbar, and other OS UI elements. On an iPhone 14 Pro with physical resolution 2556 by 1179, your CSS viewport is only 393 by 852 pixels. The device pixel ratio (DPR) of 3x does the scaling. This is why writing CSS media queries based on physical screen resolution is a mistake that breaks on high-DPI devices.

Developer

Screen Resolution vs Viewport Size: Key Differences for Developers

Understanding the difference between screen resolution and viewport size is fundamental for anyone building websites. Confusing these two values causes countless responsive design bugs, broken media queries, and blurry images on mobile devices.

Screen Resolution: The Hardware Layer

Screen resolution lives at the hardware level. JavaScript's screen.width and screen.height return these values. On desktop operating systems with scaling enabled, these return the logical rather than the raw hardware pixel count.

Viewport Size: What CSS Actually Sees

Viewport size is the area inside your browser window in CSS pixels, after subtracting browser chrome and OS taskbar. You read it with window.innerWidth and window.innerHeight. This is what CSS media queries respond to.

Device Pixel Ratio (DPR)

The bridge between physical pixels and CSS pixels is the Device Pixel Ratio. An iPhone 14 has a physical resolution of 2532 by 1170 pixels but a CSS viewport of 390 by 844 pixels, with a DPR of 3. Your CSS breakpoints trigger at 390px, not 2532px. If you serve images at CSS pixel dimensions, they will look blurry on Retina screens. Serve images at 2x or 3x using srcset or use SVG formats.

Practical Developer Takeaways

Always base CSS media queries on viewport size (window.innerWidth), never screen.width. When providing images, supply srcset with 2x and 3x variants. Use our breakpoint matcher to instantly see which CSS breakpoint is active. When filing bug reports, always include both viewport size and DPR.

Design

How to Design for Every Screen Size in 2025

The web is viewed on screens from 320px-wide feature phones to 8K TV displays. Building a design that works beautifully across all of them requires a systematic, flexible approach rooted in modern CSS.

Start Mobile First

Mobile-first means starting with the most constrained layout for narrow viewports, then using min-width media queries to progressively enhance for larger screens. This results in leaner CSS, faster mobile page loads, and fewer layout conflicts.

Use Fluid Typography with clamp()

Use CSS clamp() to create fluid typography that scales smoothly between a minimum and maximum size. A heading defined as font-size: clamp(1.5rem, 4vw, 3rem) will be 1.5rem on narrow mobile, scale proportionally as the viewport grows, and cap at 3rem on large displays. No breakpoints needed.

CSS Grid and auto-fill

Using grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) creates a card grid that automatically adjusts column count based on available width, with no media queries at all.

Container Queries

CSS Container Queries, now supported in all major browsers, let you style a component based on its parent container's size. A card can be single-column in a narrow sidebar and two-column in a wide main area, without global media queries.

Test at Real Resolutions

Use screenresolutionsize.com's breakpoint matcher to confirm which CSS breakpoint is active. Pay special attention to 1366Γ—768, the most common laptop resolution globally and often overlooked during development on high-res MacBooks.

Gaming

1080p vs 1440p vs 4K: Which Resolution is Right for Gaming in 2025?

Choosing the right gaming resolution is one of the most impactful decisions for your PC gaming setup. It affects visual quality, performance, GPU requirements, monitor price, and how every game you play feels.

1080p: The Sweet Spot for Competitive Gamers

Full HD at 1920 by 1080 remains dominant in competitive gaming. It requires less GPU power, letting you push much higher frame rates. With a mid-range GPU like an RTX 4060, you can achieve buttery smooth 144Hz+ gameplay. For fast-paced games like Valorant, CS2, or Apex Legends where frame rate beats visual fidelity, 1080p on a 24-inch monitor remains the optimal choice in 2025.

1440p: The Best All-Rounder

QHD at 2560 by 1440 is the best all-around gaming resolution for 2025. It offers 78% more pixels than 1080p β€” noticeably sharper textures and more immersive open-world visuals. On a 27-inch monitor, 1440p delivers around 108 PPI, genuinely sharp at normal viewing distances. An RTX 4070 or RX 7800 XT handles 100+ fps at 1440p comfortably.

4K: Maximum Visual Fidelity

UHD at 3840 by 2160 delivers stunning quality for graphically rich games. At 4K on a 32-inch monitor, you get around 138 PPI. The catch is GPU requirements β€” sustaining 60 fps at 4K with high settings in demanding games requires top-tier hardware like an RTX 4080 or 4090. Best for single-player, story-driven games where immersion matters more than competitive frame rates.

Tech

Device Pixel Ratio (DPR) Explained: Retina Displays & HiDPI

Device Pixel Ratio is one of the most important concepts in modern web development. Getting it wrong results in blurry images, poor performance, and a degraded user experience on hundreds of millions of high-density screens.

What DPR Actually Means

DPR is the ratio of physical display pixels to CSS logical pixels. DPR 1 = one physical pixel per CSS pixel (standard HD). DPR 2 (Retina) = four physical pixels (2Γ—2) per CSS pixel. DPR 3 = nine physical pixels per CSS pixel. Read it with window.devicePixelRatio.

Why Images Look Blurry Without DPR Awareness

If you display a 100Γ—100 CSS pixel image on a DPR 2 screen, the browser stretches it across 200Γ—200 physical pixels. If your source image is only 100Γ—100, each source pixel covers four physical pixels β€” visible blurriness results. For DPR 2, serve a 200Γ—200 source; for DPR 3, serve 300Γ—300.

The srcset Solution

Use the srcset attribute: srcset="image.jpg 1x, image@2x.jpg 2x, image@3x.jpg 3x". For logos and icons, use SVG β€” it scales perfectly at any DPR with no quality loss.

DPR Values in the Wild

Standard desktop monitors: DPR 1. MacBook laptops: DPR 2. iPhones 12+: DPR 3. Samsung Galaxy flagships: DPR 4. Windows laptops with high-res displays: DPR 1.5–2. Our tool shows your exact DPR instantly on page load.

SEO

How Screen Resolution Affects Website Performance & SEO in 2025

Screen resolution directly impacts Core Web Vitals scores, Largest Contentful Paint, cumulative layout shift, and ultimately Google search rankings. Here is how to think about resolution when optimising for SEO and performance.

Resolution-Aware Image Delivery

Serving oversized images is one of the most common performance mistakes. A hero image sized for 4K served to a mobile user at 390px CSS width is downloading up to 16 times more data than necessary. Use the picture element with srcset and sizes attributes. Modern image CDNs can handle this automatically based on the requesting device's viewport and DPR.

Cumulative Layout Shift and Resolution

CLS is heavily influenced by images loading without explicit dimensions. When a browser does not know an image's dimensions before it loads, it reserves no space β€” causing content to shift when the image appears. Always set explicit width and height on img elements and use aspect-ratio CSS to prevent layout shifts at every resolution.

Mobile-First Indexing and Viewport

Google primarily crawls the mobile version of your website, simulating a mobile viewport around 360–390 pixels wide. Content that only renders correctly at desktop resolutions will score poorly. Test your site at narrow viewports using our tool and browser DevTools.

Next-Gen Image Formats

WebP images are 25–35% smaller than equivalent JPEG files. AVIF is 50%+ smaller. Both are supported in all modern browsers. Serving WebP or AVIF at the correct resolution for each device's DPR is a double win: better visual quality on HiDPI screens and dramatically smaller files for standard screens.

Hardware

Monitor Buying Guide 2025: Resolution, Refresh Rate & Panel Type

Buying a new monitor in 2025 means navigating a sea of confusing specs. Resolution, refresh rate, panel type, response time, HDR rating, colour accuracy β€” all of these matter for different use cases. This guide cuts through the marketing noise and gives you the practical information needed to make the right choice.

Resolution: How Many Pixels Do You Actually Need?

For a 24-inch monitor, 1080p at 91 PPI is perfectly sharp for most users seated at a normal desk distance. At 27 inches, 1440p at 108 PPI is the sweet spot β€” noticeably sharper than 1080p without requiring a high-end GPU. For 32-inch and above, 4K at 138 PPI is ideal. Going 4K on a 27-inch screen can actually cause text scaling issues on some setups, so stick to 1440p at that size unless you specifically need pixel-perfect sharpness for design work.

Refresh Rate: 60Hz vs 144Hz vs 240Hz

60Hz displays update 60 times per second β€” adequate for productivity, browsing, and video. 144Hz makes a significant, visible difference in gaming and general mouse cursor smoothness. 240Hz and above is primarily for competitive gaming where even small latency advantages matter. For general use, 144Hz is the sweet spot. Always ensure your GPU can actually deliver enough frames to use the higher refresh rate β€” a 240Hz monitor running at 60fps from a weak GPU looks no better than a 60Hz panel.

Panel Types Explained

IPS (In-Plane Switching) panels offer excellent colour accuracy, wide viewing angles, and consistent brightness. Ideal for design, photography, and video editing. Response times are typically 1–4ms GtG. TN (Twisted Nematic) panels are the fastest (0.5–1ms), cheapest, and brightest, but have poor colour accuracy and narrow viewing angles β€” primarily used in competitive gaming monitors. VA (Vertical Alignment) panels have the best contrast ratios (3000:1 to 6000:1) but suffer from "smearing" on fast motion. Good for movies and productivity. OLED panels offer perfect blacks, the fastest response times, and the widest colour gamut β€” the premium choice for those who can afford it, with burn-in risk on static content as the main concern.

HDR: When It Actually Matters

HDR (High Dynamic Range) on monitors is frequently misrepresented. "HDR400" certification means the panel can hit 400 nits of peak brightness β€” barely better than non-HDR monitors. True HDR requires at least HDR1000 (1000 nits peak brightness) and local dimming. If you see a monitor advertised as "HDR" without a number, or with "HDR400", the HDR benefit is minimal. For genuine HDR quality, look for DisplayHDR 1000 or DisplayHDR 1400 certification, and be prepared to pay accordingly.

Mobile

iPhone & Android Screen Resolutions: The 2025 Complete List

Every major smartphone launched in the past five years has a different physical resolution and CSS viewport combination. Knowing the exact numbers is essential for designing websites, apps, and testing responsive layouts. Here is the 2025 reference guide.

Current iPhone Screen Resolutions (2025)

iPhone 16: 2556 Γ— 1179 pixels, CSS viewport 393 Γ— 852, DPR 3. iPhone 16 Plus: 2796 Γ— 1290 pixels, CSS viewport 430 Γ— 932, DPR 3. iPhone 16 Pro: 2622 Γ— 1206 pixels, CSS viewport 402 Γ— 874, DPR 3. iPhone 16 Pro Max: 2868 Γ— 1320 pixels, CSS viewport 440 Γ— 956, DPR 3. iPhone 15: same as iPhone 16 (2556 Γ— 1179). iPhone SE (3rd gen): 1334 Γ— 750 pixels, CSS viewport 375 Γ— 667, DPR 2.

Current Android Screen Resolutions (2025)

Samsung Galaxy S24: 2340 Γ— 1080, CSS viewport 360 Γ— 780, DPR 2.625. Samsung Galaxy S24 Ultra: 3088 Γ— 1440, CSS viewport 412 Γ— 915, DPR 3.5. Google Pixel 9: 2400 Γ— 1080, CSS viewport 412 Γ— 915, DPR 2.625. OnePlus 12: 3168 Γ— 1440, CSS viewport 412 Γ— 915, DPR 3. Xiaomi 14: 2670 Γ— 1200, CSS viewport 393 Γ— 873, DPR 3.

Why CSS Viewport Is What Developers Should Care About

When you write a CSS media query like @media (max-width: 430px), it responds to the CSS viewport width, not the physical pixel count. On an iPhone 16 Pro Max with a physical width of 2868 pixels, the CSS viewport is 440 pixels β€” that is what your media query sees. Always design around CSS viewport widths (300–460px range for most modern phones) rather than physical resolutions.

Safe Zones and Notches

Modern iPhones have Dynamic Island or notch cutouts, and newer Android phones have punch-hole cameras. Use CSS environment variables like env(safe-area-inset-top) to ensure your content is not hidden behind these hardware features. Always test on real devices or accurate DevTools profiles before shipping.

Performance

Responsive Images in 2025: srcset, sizes, and picture Element Guide

Serving the right image at the right resolution is one of the highest-impact performance optimisations available. On mobile, it can reduce image payloads by 80%. On HiDPI displays, it means the difference between crisp and blurry visuals. Here is the complete 2025 guide.

Understanding srcset with Width Descriptors

The srcset attribute tells the browser which image files are available and their pixel widths: srcset="hero-400.jpg 400w, hero-800.jpg 800w, hero-1600.jpg 1600w". Without a sizes attribute, the browser assumes the image will be displayed at 100vw. Always pair srcset with sizes for accurate selection.

The sizes Attribute

The sizes attribute describes how wide the image will be at different viewport widths: sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw". This tells the browser: "at narrow viewports use full width, at medium viewports use half width, at wide viewports use a third." The browser combines this with the DPR to select the optimal image.

The picture Element for Art Direction

When you need to serve a completely different image crop at different screen sizes (art direction), use the picture element. This lets you show a tightly cropped portrait version on mobile and a wide landscape version on desktop β€” not just a smaller version of the same image.

WebP and AVIF as Source Formats

Use the picture element to serve modern formats with JPEG fallback: source with type="image/avif", then source with type="image/webp", then a standard img as fallback. AVIF gives 50%+ size reduction over JPEG while maintaining better visual quality at equivalent file sizes.

Hardware

Ultrawide Monitors Explained: 21:9 and 32:9 Aspect Ratios in 2025

Ultrawide monitors have gone from a niche enthusiast product to a mainstream productivity and gaming tool. But the wide variety of resolutions, aspect ratios, and curved configurations can make it hard to know which one is right for you. Here is what you need to know.

21:9 UltraWide: The Most Common Option

The standard 21:9 ultrawide at 3440 Γ— 1440 is the most widely adopted format. At 34 inches, it delivers 110 PPI β€” sharp and comfortable. The 3440-pixel width gives you the visual equivalent of two 1720-pixel side-by-side windows, making multitasking dramatically more efficient. For gaming, 3440 Γ— 1440 provides a cinematic field of view in supported titles, though your GPU needs to push 4.9 million pixels instead of the 3.7 million in 1440p β€” roughly a 33% increase in rendering load.

32:9 Super Ultrawide

At 5120 Γ— 1440 (Samsung Odyssey G9 and similar), the 32:9 aspect ratio is the equivalent of two 27-inch 1440p monitors side by side with no bezel. This is the ultimate multitasking display. For gaming, support is more limited β€” many games do not properly support 32:9 and will stretch or show black bars. Check compatibility before purchasing if gaming is a priority.

Web Design at Ultrawide Resolutions

Websites with a maximum content width (typically 1200–1440px) handle ultrawide screens gracefully. Websites built without a max-width constraint will stretch content uncomfortably wide on ultrawide displays. If you build websites, always test at 3440-pixel viewport widths. Our device comparison table includes ultrawide entries for exactly this purpose.

Curved vs Flat Ultrawide

Curved ultrawide monitors (typically 1800R or 1000R curvature) wrap the edges of the display toward your eyes, reducing the depth-of-field effect that makes the edges of flat ultrawide displays appear slightly blurrier. For large 34-inch and 49-inch ultrawides, curvature is generally recommended. For smaller widths under 34 inches, flat is fine.

Tech

4K Resolution Explained: UHD vs DCI 4K vs True 4K

When people say "4K", they might mean three different things. The confusion between consumer 4K (UHD), cinema 4K (DCI), and native 4K stems from the marketing blurring of technical standards. Here is what each actually means.

Consumer UHD 4K: 3840 Γ— 2160

This is what virtually all consumer monitors, TVs, streaming services, and game consoles mean when they say "4K". The resolution is 3840 Γ— 2160 pixels β€” exactly double Full HD (1920 Γ— 1080) in each dimension, producing exactly four times the pixel count. YouTube 4K, Netflix 4K, and console gaming at "4K" all use this resolution. The 16:9 aspect ratio matches standard widescreen content perfectly.

DCI 4K: 4096 Γ— 2160

DCI 4K (Digital Cinema Initiatives) is the professional film standard, used in commercial cinemas and professional video production. At 4096 Γ— 2160, it is slightly wider than consumer UHD and has a 1.9:1 aspect ratio. Most consumer displays cannot show DCI 4K natively β€” they will either crop it, letterbox it, or downscale it. If you are buying a monitor "for DCI 4K editing", verify it can display the full DCI resolution.

What "4K Upscaling" Actually Means

Many TVs and displays advertise "4K upscaling" for lower-resolution content. This uses algorithms (including AI-based upscaling in recent generations) to artificially increase a 1080p image to 4K by filling in pixel data. Modern AI upscaling like NVIDIA DLSS, AMD FSR, or Sony's AI algorithms can produce genuinely impressive results, but upscaled 4K is never as sharp as native 4K.

Tech

Refresh Rate Explained: Why 144Hz Feels So Much Smoother Than 60Hz

Refresh rate is one of those specs that sounds technical but whose effects are immediately, viscerally noticeable once you experience them. Scrolling a website on a 144Hz display versus a 60Hz display feels like the difference between moving through water and moving through air. Here is the science and practical guidance.

What Refresh Rate Actually Is

Refresh rate, measured in Hertz (Hz), is how many times per second your display updates the image it shows. At 60Hz, the screen draws a new frame 60 times per second, meaning each frame is displayed for 16.67 milliseconds. At 144Hz, each frame is displayed for only 6.94 milliseconds. At 240Hz, frames update every 4.17 milliseconds. The shorter the frame display time, the more "instantaneous" motion appears.

The 60Hz to 144Hz Jump: The Biggest You Will Ever Notice

Human vision research shows the greatest perceptible improvement in motion clarity happens going from 60Hz to 120–144Hz. The step from 144Hz to 240Hz is noticeable to competitive gamers with trained reflexes but far less dramatic for general users. Going from 240Hz to 360Hz shows diminishing returns perceptible only in extremely controlled testing conditions. If you are upgrading a 60Hz display, going directly to 144Hz provides the most impactful improvement per pound spent.

Variable Refresh Rate: FreeSync and G-Sync

Fixed refresh rates cause screen tearing when your GPU delivers frames at a rate that does not match your display's Hz. AMD FreeSync and NVIDIA G-Sync synchronise the display's refresh rate to match your GPU's output rate dynamically β€” eliminating tearing and stutter without the input lag penalty of V-Sync. On modern monitors, always enable variable refresh rate support for the smoothest gaming experience.

How We Measure Refresh Rate on This Website

We use requestAnimationFrame to count how many frames are drawn in exactly one second. This gives an accurate measurement of the refresh rate your display is currently operating at β€” which may be lower than its maximum if power saving modes are active. Check our tool to see your current refresh rate.

Tech

Color Depth Explained: 8-bit vs 10-bit vs 12-bit Displays

Colour depth determines how many distinct colours your display can reproduce. Most consumers never think about it, but professional designers and photographers live by it. Here is what the numbers mean and when they actually matter.

8-bit: The Standard Consumer Baseline

An 8-bit panel can display 256 shades per colour channel (red, green, blue), giving a total of 256Β³ = 16.7 million possible colours. This is sufficient for web browsing, office work, gaming, and watching video. Most consumer monitors and all smartphone displays use 8-bit or an approximation via dithering (6-bit + FRC, which simulates 8-bit through frame rate control).

10-bit: Professional and Premium Consumer

A 10-bit panel displays 1,024 shades per channel β€” 1.07 billion total colours. The difference over 8-bit is most visible in smooth gradients where 8-bit shows visible "banding" (distinct steps between shades). If you do photo or video work, a true 10-bit display is essential for accurate colour grading. HDR video content is mastered at 10-bit, so a genuine 10-bit display is required to render HDR without tone mapping.

12-bit: Cinema and Professional Mastering

At 4,096 shades per channel and 68 billion total colours, 12-bit display panels are found only in high-end professional reference monitors (Sony BVM, Canon DP-V) used for film mastering and broadcast production. Consumer 12-bit displays do not exist in 2025 at any reasonable price point. Most content is mastered to 10-bit, making 12-bit unnecessary for the vast majority of use cases.

What Our Tool Reports

Our colour depth metric reads screen.colorDepth from the browser, which typically returns 24 (representing 8 bits per channel across three channels = 24 total bits). This is the standard value for all modern displays in web contexts, regardless of whether the hardware panel is 8-bit, 10-bit, or uses FRC techniques.

Guide

Aspect Ratio Guide: 16:9 vs 16:10 vs 21:9 vs 4:3 β€” Which Is Best?

Aspect ratio is the proportional relationship between a display's width and height. It affects how much content fits on screen, how comfortable the display is for different tasks, and how it handles videos and games created at various standards. Here is the complete practical guide.

16:9 β€” The Universal Standard

The 16:9 ratio is the universal standard for consumer displays, televisions, streaming video, and gaming. Nearly all video content is produced in 16:9. Monitors at 16:9 include 1920Γ—1080, 2560Γ—1440, and 3840Γ—2160. It is the safe choice if you want content to fill your screen without black bars or cropping in the vast majority of use cases.

16:10 β€” The Productivity Sweet Spot

The 16:10 ratio (also expressed as 8:5) adds extra vertical space compared to 16:9. This means more lines of text visible in a document, more rows visible in a spreadsheet, more vertical content in a code editor without scrolling. Common resolutions include 1920Γ—1200, 2560Γ—1600, and 3840Γ—2400. MacBook displays use 16:10 (or close to it), which partly explains why developers often prefer MacBooks for coding. If you spend your day in documents, code, or reading, 16:10 is genuinely more productive.

21:9 β€” The Immersive Ultrawide

21:9 at 3440Γ—1440 or 2560Γ—1080 provides an immersive horizontal field of view for gaming and a genuine two-window working experience for productivity. Cinema-format movies shot in 2.39:1 (close to 21:9) fill the screen without letterboxing. Standard 16:9 videos will have black bars on the sides. Check that your most-used applications support ultrawide natively before purchasing.

4:3 β€” Legacy Standard

The 4:3 ratio dominated CRT monitors and early flat panels before the switch to widescreen. Today it appears primarily on iPads (close to 4:3), certain industrial displays, and legacy embedded systems. Web content designed for 4:3 displays will look narrow and column-like on modern widescreen monitors. If you develop for kiosk or embedded displays, always check the target device's aspect ratio early in the design process.

Developer

CSS Media Queries Complete Guide 2025: Breakpoints, Ranges & New Features

CSS media queries are the foundation of responsive web design. They have evolved significantly over the years and 2025 brings new features like media query ranges and updated browser support for container queries. This guide covers everything from the basics to the cutting edge.

The Essential Breakpoints

Rather than memorising every device's exact resolution, design around logical content breakpoints. Common practical breakpoints: 480px (small phones), 640px (large phones / Tailwind sm), 768px (tablets / Bootstrap md), 1024px (small laptops / Tailwind lg), 1280px (desktops / Tailwind xl), 1536px (large desktops / Tailwind 2xl). These align with the most common viewport widths seen in web analytics.

New Media Query Range Syntax

Modern browsers now support a cleaner range syntax for media queries. Instead of @media (min-width: 768px) and (max-width: 1023px), you can write @media (768px <= width <= 1023px). This is more readable and less error-prone. Browser support reached over 90% globally in 2024.

prefers-color-scheme and prefers-reduced-motion

Beyond width-based breakpoints, modern media queries include user preference queries. @media (prefers-color-scheme: dark) applies dark mode styles when the user's OS is set to dark. @media (prefers-reduced-motion: reduce) disables animations for users who have set their accessibility preference to reduce motion. Implementing both improves accessibility and user experience.

Resolution and DPR in Media Queries

You can target high-DPR displays in CSS: @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx). This lets you swap in higher-resolution background images for Retina displays directly in CSS, without JavaScript. The resolution media feature is well-supported and a clean solution for CSS background images.