A user seeks CSS code to reduce the size of an “As Seen In” image on their product page’s desktop view while maintaining its mobile dimensions.
Current Issue:
The image appears too wide on desktop, matching the width of the “more benefits” section above it
Mobile sizing is already appropriate and should remain unchanged
Solutions Provided:
Two approaches were offered:
Custom CSS method (xtrend): Navigate to Theme → Customize → Custom CSS and add a media query targeting screens 768px+ wide. Use width: 50% and margin: 0 auto with !important flags on the banner element ID, adjusting the percentage as needed.
theme.liquid method (PageFly-Oliver): Access Online Store → Theme → Edit Code, locate the theme.liquid file, and paste CSS code at the bottom before saving.
Both solutions use CSS code snippets to constrain the image width specifically on desktop viewports while preserving the mobile layout.
Summarized with AI on November 12.
AI used: claude-sonnet-4-5-20250929.
Please can someone give me the code to make this “As Seen In” image smaller on desktop so it is a wide as the “more benefits” above it. Please do not re size it on mobile it is a good size on there. Thank You!