Site logo

Archived topic

background image issue (again)

9 replies · Started by Axel on November 20, 2016

Viewing posts 1–10 of 10

i know that this is no new issue at all, but i cant getting it solved properly up to now:
i've set a global bg image to body in GP. full width (cover) and fixed.
so this works great on desktop and mostly all mobile devices and browsers (some exeptions) but not at all on ios-devices, mainly ipad.

the strange thing is that the image is there, but doesnt seem to follow the viewport (as intended) but the whole size of the page or content (experiencing this when page content amount is quite different).
tried a few 'solutions' already that can be found out there on the web, but none seems to work without issues, and ios devices seem to be quite hard to trick out - but there are lots of out there, so they should be paid attention to as well...

so whats really the best way to solve this, and force the bg to follow all viewports???

yep. 'fixed' should force the bg to stick to the viewport. but thats not the case on ios.

ios seems to have 'trouble' with fixed for a long time - looks even more like this is not supported or supressed.
and it seems its hard to deal with.
what i am looking for is a way to deal with, with pure css! eighter could change the attachment to 'scroll' for ios, or much better implement something that forces ios to show the fixed.
and the question for me was, what might be the right way for GP or if you might have an idea or solution, because so far nothing really worked well ...

???

@sebastian thanks.
the plugin seems to be a little outdated... but will see if i try the manual one.

got it solved for elementor-sections with full-width-bg by setting an @media-rule for mobile devices by forcing the background-attachment to scroll. (can live with this for the moment until finding a better solution).
but think that this only works because they are set within divs... so that doesnt do the trick for gp-body-background so far.

would still prefer a simple css workaround ... :-)

I'm not sure a simple CSS workaround exists, but I'll definitely keep an eye out for it :)

... issue solved - no! :-(

@sebastian: can you show me a site where this works on ios-devices?????????
tried the backstretch thing... it sets the image right according to viewport, but the again its scrolling with content, and rest of page leaving blank bg.
so thats no solution anyway.

@tom: is there a way to put it as bg into div that covers the whole body? cant get that to work ...

damn apples!

o.k. tested both again:
easy backstretch works now (dont know why not before...) with same 'issue' as on your site; the little flip up and down when rescaling/recovering bg.
simple full screen also works, again with little flip, but smoother. only disadvantage: it squeezes the image on portrait mode.
so stay to the first by now. better than every attempt before!

grüsse nach magdeburg und danke nochmals! but lets stay to the language of the forum we're in, so big thanks again :-)

Danke und gerne. ;-)

This archived topic is closed to new replies.