Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Build the narrow-screen version of a page first, then add layout changes when the content needs more room. Use flexible Grid or Flexbox layouts, choose breakpoints based on where the design stops working well, and check that content remains accessible at narrow widths and when zoomed.

What mobile-first CSS means

Mobile-first is a way to build responsive websites: begin with a useful layout for a narrow viewport, then layer on changes for wider viewports. It is a workflow, not a requirement that every site use one particular CSS structure. Responsive design combines layouts that adapt to available space with conditional styles such as media queries. MDN’s responsive design guide covers both ideas.

Starting narrow encourages you to decide which content and actions are essential before adding columns, navigation treatments, or other arrangements that need more room. The narrow layout should still be complete and functional; it is not a stripped-down page that hides important information.

Build a narrow layout, then add breakpoints

Media queries apply CSS when a browser or device condition matches. Viewport width is a common condition for responsive layouts. With a mobile-first stylesheet, write the base rules for the narrow layout and use min-width queries to add or adjust layout as space becomes available.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Yojaro 4Pack Silicone Suction Phone Case Mount, Silicon Adhesive Smartphones Stand Sticky, Hands-Free Phone Accessories Holder for Selfies and Videos (Black & White & Translucent & Light Pink)
  • 【Strong Adsorption】The inspiration of the silicone phone suction case comes from the adhesive force of the octopus. Each suction cup phone mount is 3.15 inches long and 2.17 inches wide, with 24 independent suction cups providing a stronger and more stable suction force, so you don't have to worry about your phone falling during use.
  • 【Back of Phone Suction Grip】Remove the adhesive film on the phone suction cup and stick it on the phone case. You can then fix the phone on any smooth surface, which is very convenient. (The phone suction cup cannot be removed and reused after being attached to the phone case. It is recommended to attach it to a regular phone case, not a valuable one.)
  • 【Widely Used】Our non-slip silicone phone sticky grip mount attaches to almost any flat phone case and make it compatible with common mobile phones such as iPhone and Android.You can shoot, watch videos or video calls in the kitchen, gym, dance studio, bathroom and other places.
  • 【Capture the Wonderful Picture】Whether you are a TikTok creator or just like to share videos and photos, this phone suction cup can help you hands-free capture wonderful videos and photos for sharing with friends.
  • 【Note】You can fix the phone suction cup on a smooth surface such as a mirror or glass. If necessary, wipe the suction cup with a damp cloth to obtain stronger suction. Before releasing your hand, make sure the phone is firmly fixed. (Not applicable to rough walls, wooden surfaces, and other uneven surfaces)
* {
  box-sizing: border-box;
}

.page {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 42rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

This is an implementation illustration, not a set of recommended universal breakpoints. The values shown are example thresholds only. Replace them with the points at which your own content or layout needs to change.

Choose breakpoints by testing the content

Resize the viewport gradually and watch for problems: cramped text, controls that collide, columns that become too narrow, or navigation that no longer fits. Add a breakpoint where a different arrangement solves a real problem. There is no universal list of device widths or pixel cutoffs established by the cited guidance.

Prefer a small number of purposeful layout changes over many narrow overrides. After each change, check nearby widths as well as the exact threshold: a layout can work at the breakpoint and fail just above or below it.

Use width conditions deliberately

min-width is useful for adding complexity as the viewport grows. A max-width condition can target a limited range or apply a narrow-screen adjustment. Keep overlapping queries understandable: document why a rule exists if the reason is not clear from the layout itself.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Apple EarPods Headphones with USB-C Plug, Wired Ear Buds with Built-in Remote to Control Music, Phone Calls, and Volume
  • SUPERIOR COMFORT — Unlike traditional circular ear buds, the design of EarPods is defined by the geometry of the ear. Which makes them more comfortable for more people than any other ear bud–style headphones.
  • HIGH-QUALITY AUDIO — The speakers inside EarPods have been engineered to maximize sound output and minimize sound loss, which means you get high-quality audio.
  • BUILT-IN REMOTE — EarPods with USB-C plug also include a built-in remote that lets you adjust the volume, control the playback of music and video, and answer or end calls with a pinch of the cord.
  • COMPATIBILITY — Works with all devices that have a USB-C port.
  • INTEGRATED MICROPHONE — A built-in microphone precisely captures your voice while you’re on the phone, taking a FaceTime call, or summoning Siri — so you’re always heard loud and clear.

Use Grid or Flexbox to let regions reflow

CSS Grid and Flexbox can both adapt layout regions to available space, including in combination with media queries. Choose according to the relationship between the items:

Need Good starting point What to check
Rows and columns that form a two-dimensional layout Grid Ensure the chosen columns can shrink or reflow without forcing overflow.
A line or sequence of items that can wrap or align along one axis Flexbox Check wrapping, item sizes, and whether the visual order still makes sense.

These are practical starting points, not a claim that one tool is categorically better. Both can support reflow. Keep the document’s source order meaningful, and avoid visual rearrangements that make reading order or keyboard focus confusing. W3C discusses these concerns in its Grid technique and Flexbox technique.

Prevent images and text from overflowing

A responsive layout can still break when an image exceeds its container or a long URL or other unbroken string pushes the page wider than the viewport.

Constrain images to their available space

A common implementation is to limit an image’s width and let its height scale proportionally:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
PopSockets Adhesive Phone Grip, Holder- Black
  • Secure Hold: Our PopSockets adhesive phone grip gives your cell phone a secure, comfortable hold in hand to help prevent drops while texting, taking photos, or scrolling on the go. Designed to stick firmly to most phone cases and devices.
  • Hands-Free Made Easy: Easily turn your PopSocket into a phone stand to prop up your phone anywhere, perfect for watching videos, video calls, or following recipes. A must-have phone holder that keeps your device secure and ready for anything.
  • Compatibility: Works with all phones, tablets, and Kindles. Sticks best to smooth, hard plastic cases and may not adhere to silicone or textured cases. Easily swap your PopTop to change up your style.
  • Black PopSockets: Simple, refined, and endlessly versatile. A timeless essential for any phone.
  • Travel Must-Have for People On the Go: A must-have travel accessory for flights, flying, airports, air travel, airplanes, planes, international trips, cruises, and long travel days. Key gadget for your airport haul, travel accessories and must-haves.
img {
  max-width: 100%;
  height: auto;
}

This is an implementation illustration of the approach described in W3C’s C37 technique. Check any fixed-size images and embedded content separately; the rule does not automatically solve overflow from every kind of media.

Wrap long strings when needed

Long URLs, identifiers, and other unbroken text can exceed a narrow container. Apply wrapping to the relevant content rather than indiscriminately changing every text element:

.user-content {
  overflow-wrap: anywhere;
}

This implementation illustrates a CSS approach to long strings discussed in W3C’s C33 technique. Inspect the result to ensure wrapped content remains readable and does not obscure controls.

Check reflow, zoom, and keyboard order

Responsive CSS is also an accessibility concern. WCAG 2.1 Success Criterion 1.4.10 says: “Content can be presented without loss of information or functionality, and without requiring scrolling in two dimensions for:” For vertically scrolling content, the criterion uses a width equivalent to 320 CSS pixels; for horizontally scrolling content, it uses a height equivalent to 256 CSS pixels. It includes exceptions for content that inherently requires a two-dimensional layout. These are accessibility equivalences, not required physical device sizes. W3C explains that the width equivalence corresponds to a 1280 CSS-pixel starting viewport at 400% zoom, and the height equivalence to a 1024 CSS-pixel starting viewport height at 400% zoom. See W3C’s Understanding Reflow for the full criterion and context.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
360° Rotating Stainless Steel Phone Tether Tab (Silvery 3-Pack) - Universal for iPhone & Other Phones (Fits Wristbands/Necklaces/Crossbody Straps)
  • [360 ° Flexible Rotation Design] Comes with a rotatable lanyard ring that supports 360 ° free rotation, effectively solving the problem of twisted and tangled lanyards
  • [Wide compatibility] The ultra-thin 0.02-inch design does not block the charging port at all, and both wired and wireless charging can be used directly without removing the pad. Compatible with most smartphones such as iPhone, compatible with various wristbands, lanyards, crossbody straps, and keychains
  • [Durable and Portable Material] Premium rust-resistant stainless steel material with good flexibility, which not only avoids scratching the phone case, but also has excellent anti rust and anti fading performance
  • [Multi scenario Practical] Paired with a lanyard or wristband, hands-free use can be achieved. The phone is within reach and not easily dropped, ideal for daily commuting and outdoor activities. Suitable for full coverage phone cases, does not support half coverage phone cases
  • [Quality Service] If you find any damage or other issues with the product upon receipt, please contact us immediately. We will handle it quickly
  • At a narrow viewport, confirm that information and functionality remain available without page-wide horizontal scrolling, except where the content inherently requires two-dimensional presentation.
  • Enlarge text or zoom the page and inspect for clipped content, overlapping controls, or missing actions.
  • Navigate using the keyboard. Confirm that focus follows a sensible sequence and does not jump in a way that conflicts with the visual arrangement.
  • Inspect the page at widths near each breakpoint, not only at preset device sizes.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common responsive CSS problems and fixes

The page scrolls horizontally

Look for fixed-width elements, oversized images, wide tables, and long unbroken strings. Constrain images, allow appropriate text wrapping, and revise fixed dimensions so the layout can shrink or reflow. Some content, such as a data table whose meaning depends on two dimensions, may need a distinct treatment; do not hide information simply to eliminate scrolling.

Columns become cramped before the breakpoint

The breakpoint may be too late, or the columns may have inflexible minimum sizes. Test the content at intermediate widths and change the layout when it no longer has room to remain legible. A one-column layout can remain in effect until the content can support more columns.

Visual order differs from reading or focus order

Check whether Grid placement, Flexbox ordering, or directional layout rules move elements away from their source order. If keyboard focus and assistive-technology reading order no longer follow the intended sequence, revise the markup or layout rather than relying on visual positioning alone.

Rules are difficult to maintain

Review whether each media query addresses a specific content or layout need. Remove obsolete overrides and consolidate rules that perform the same change. Avoid adding breakpoints solely because a device has a familiar marketed screen size.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anteel 2 Pack Silicone Suction Cup Phone Case Mount Double Sided, Hands-Free Silicon Phone Grip with Higher Suction Power for Selfies and Videos, Non Slip Phone Accessories (LightPink&White)
  • 【PKYAA Double Sided Silicone Suction Phone Case Mount】PKYAA With Double Sided 40 Strong and Reliable individual suction cups, PKYAA provides a thicken and upgraded universal silicon suction mount for your phone.
  • 【Friendly to Content Creators】If you are a content creator or an online influencer, you can create videos anywhere with this suction mount completely hands free with this silicone cell phone mount for cases.
  • 【HANDS-FREE & Adhere to Mirrors】This Double Sided silicone suction phone case mount allows you to stick your phone to the mirror easily. No longer holding your phone in one hand to watch video tutorials while making up.
  • 【Strong Grip on the Smooth Surface】You can easily hang your phone anywhere with a smooth surface. All you do is you clean off your phone and smooth surface. It is STURDY and it not only sticks to mirrors, it also sticks to windows, it sticks to refrigerators, tiles and other clean, flat surfaces.
  • 【Press Down Firmly Every 30 Minutes】Use your palm or fingers to press the phone down firmly and check it's secure before letting go. Apply even pressure for a few seconds to allow the suction cup to adhere properly. To maintain the grip and prevent accidental falls, it's a good practice to periodically reapply pressure to the suction cup.

Capture responsive screenshots with ScreenshotNeo

To review the same page at different viewport sizes, a screenshot API can capture the page for visual inspection. ScreenshotNeo accepts a URL and can return a screenshot or PDF, with viewport and device options among its capture settings.

Or skip the browser setup

Use one GET request to capture a page; this example saves a WebP screenshot. See the ScreenshotNeo API documentation for available parameters and response details.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo removes cookie and consent banners, newsletter popups, and chat widgets before capture, with each removal step configurable. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; response headers identify the page verdict and billing status. Its MCP server offers screenshot and page-information tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots.

Sign up for 1,000 free screenshots a month, with no card required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.