A user is experiencing issues with a fixed-position image in an “Image with Text” section that works correctly on desktop but malfunctions on mobile. The image should overlap into other sections while maintaining its position, but on mobile devices it enlarges and becomes stuck on screen after scrolling.
Current Problem:
Desktop: Image stays fixed and overlaps properly into adjacent sections
Mobile: Image initially loads correctly but then enlarges and remains stuck during scrolling
Custom CSS uses position: fixed with specific dimensions and positioning
Proposed Solution:
A community member identified several drawbacks with the current approach:
Creates unwanted horizontal scrollbar
position: fixed behaves inconsistently across browsers/devices
Doesn’t scale properly on wide monitors, creating gaps
An alternative CSS solution was provided using position: absolute with viewport-based width calculations (50vw) and media queries for mobile responsiveness. This approach is more compatible but still has minor scrollbar issues on Mac desktop.
Status: The issue remains unresolved. The responder suggests starting with a different full-bleed section type instead of the current approach.
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
This code works perfectly on desktop. But on mobile after a second the website loads and you scroll past the image, the image enlargers and gets stuck on the views screen no matter where they scroll.
It is important that I use the fixed position, because it allows the image to overlap into other sections. Which lets my website flow better.
What is should look like:
(see how the hand overlaps into the testimonials and stays in its fixed position) - this is what should happen.
what actually happens:
(see how the hand loads good at first, but then gets enlarged and stuck on the screen when the user scrolls) – this is what should not happen.
First, it introduces the horizontal scroll bar which is not the best. And using rules like body { overflow-x: hidden } to mitigate this is not the best too.
Second, position:fixed is meant to work like it does on your mobile – stick image to the screen, rather then to parent element. Some rules applied on elements parents may prevent it from sticking to screen, but these are rather exclusions or quirks; this is why it works on your desktop computer, but not on mobile – some browsers may ignore these quirks.
Meaning your approach is not very compatible.
Third – it does not really work on wide monitors – see the gap on the right:
The code build on top of the original position: absolute and will be more compatible. The width based off 50vw (which is half of the screen width), so the image will cover half of the screen, no matter how wide it is.
This works almost good, except on Mac desktop, where it adds a small horizontal scroll due to the way scroll-bars are implemented.
To avoid this, i’d rather start from a different section which is full-bleed initially, not sure what’s available on your theme.