Shopify

Shopify Design Mastery: Achieving Edge-to-Edge 'Image with Text' Sections on Desktop

Hey fellow store owners! As experts in Shopify migrations and optimization at Shopping Cart Mover, we often see merchants striving for that perfect, polished online presence. A common design goal that comes up surprisingly often in the Shopify community is getting those 'Image with text' sections to truly stretch across the entire width of your desktop screen. You know, that sleek, modern, edge-to-edge look that just screams professionalism?

Recently, a great discussion popped up in the Shopify forums. Our friend ecom11, running on the Horizon theme, asked about making their 'Image with text' section full width on desktop, sharing an example of what they were aiming for.

Screenshot of a Shopify section with an image and text, showing a desire for it to be full width.

It's a common design goal for any merchant looking to enhance their Shopify store, and the community came through with some really helpful insights. Let's break down how you can achieve this polished look for your own store, whether you're just starting out or refining an existing setup.

Shopify theme editor showing 'Image with text' section settings for width and gap
Shopify theme editor showing 'Image with text' section settings for width and gap

Understanding the Challenge: Theme Settings vs. Custom Code

The core of the problem often lies in how Shopify themes handle section width and internal spacing (gaps). While many modern Shopify themes, like Dawn or Refresh, offer 'full width' settings, sometimes there are still stubborn paddings or margins that prevent a truly edge-to-edge display. This is where a little custom CSS can work wonders, giving you precise control over your store's aesthetics.

The Initial Approach: Leveraging Theme Editor Settings

One of the first and most crucial steps, as pointed out by community member tim_tairli, is to check your theme's built-in settings. For the 'Image with text' section, you'll often find options like 'Gap' and 'Size' -> 'Width'.

tim_tairli noted that setting the 'Width' option to 'Full' is a great starting point. This setting typically makes the section span the full available width of the page. However, it's important to understand that this usually applies to all screen widths. This can be problematic if you want a full-bleed look on desktop but a more contained, readable layout on mobile devices.

Achieving Responsive Full-Width with Custom CSS

If your theme's 'Width: Full' setting makes the section full-width on mobile when you prefer it to be contained, you can use a targeted CSS snippet. This code, provided by tim_tairli, will override the full-width behavior specifically for smaller screens:

@media (max-width: 750px) {
  .section--full-width > .custom-section-content {
    grid-column: 2;
  }
}

How it works:

  • @media (max-width: 750px): This is a media query that tells the browser to apply the enclosed styles only when the screen width is 750 pixels or less (i.e., typically on mobile devices).
  • .section--full-width > .custom-section-content: This targets the content within a section that has the `section--full-width` class. The `grid-column: 2;` property then tells this element to occupy the second column of a grid layout, effectively centering it and preventing it from stretching edge-to-edge on smaller screens.

Crucial Tip: Always add this code to the section's specific 'Custom CSS' setting within the theme editor. Applying it globally could inadvertently affect other sections on your site, leading to unintended design changes.

Eliminating Internal Gaps for a Seamless Look

Even if your section is technically full-width, you might notice a gap between the image and the text within the 'Image with text' section, preventing a truly seamless look. This was the specific issue highlighted by ecom11's example. Community member Moeed offered a solution to tackle this:

@media screen and (min-width: 768px) {
.layout-panel-flex--row {
    gap: 0 !important;
}
}

How it works:

  • @media screen and (min-width: 768px): This media query applies the styles only to screens 768 pixels and wider, ensuring the gap removal only happens on desktop and larger tablet views.
  • .layout-panel-flex--row: This targets the container that likely manages the layout of the image and text, often a flexbox row.
  • gap: 0 !important;: This sets the spacing between flex items (the image and text) to zero. The !important flag is used to ensure this style overrides any default `gap` values set by the theme, which can be particularly stubborn.

Again, apply this code directly to the 'Custom CSS' field of the specific 'Image with text' section you wish to modify. This ensures modularity and prevents conflicts with other parts of your theme.

Best Practices for Custom CSS in Shopify

When implementing custom CSS in your Shopify store, especially for design elements like full-width sections, keep these best practices in mind:

  • Use Section-Specific CSS: Whenever possible, use the 'Custom CSS' field within the section settings in the theme editor. This keeps your code organized and localized.
  • Test Thoroughly: Always preview your changes on different screen sizes (desktop, tablet, mobile) to ensure the design looks consistent and functions as expected.
  • Backup Your Theme: Before making significant code changes, duplicate your live theme. This provides a safety net if anything goes wrong.
  • Understand Selectors: The class names (`.section--full-width`, `.layout-panel-flex--row`) can vary slightly between themes or theme versions. If the provided code doesn't work, inspect your site's elements using browser developer tools to find the correct class names for your specific theme.

Why Full-Width Sections Matter for Your Store

Implementing full-width 'Image with text' sections isn't just about aesthetics; it significantly impacts user experience and brand perception:

  • Modern Aesthetic: Edge-to-edge designs are contemporary and give your store a premium feel.
  • Visual Impact: Large, immersive images draw visitors in, making your content more engaging.
  • Brand Storytelling: Full-width sections provide ample space to showcase product features, brand values, or lifestyle imagery, creating a more compelling narrative.
  • Consistency Post-Migration: If you've recently migrated your store to Shopify, ensuring design consistency, including elements like full-width sections, is crucial for maintaining brand identity and a seamless customer experience.

Achieving a truly full-width 'Image with text' section on your Shopify store's desktop view often requires a combination of theme settings and precise custom CSS. By understanding how to manipulate both the section's overall width and the internal spacing, you can create a polished, professional, and highly engaging storefront. If you're looking for more in-depth customization or considering a migration to Shopify, don't hesitate to reach out to the experts at Shopping Cart Mover for tailored solutions.

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases