Remove these ads. Join the Worldbuilders Guild

Page background image not responsive in mobile

closed
· Other ·
By wo100r on 11/19/2024
· Assigned to Dimitris

The page background image (uploaded from the Styling menu) will scale down properly in a desktop browser if the window is resized. However it does not resize when viewed from a mobile browser (at least not in Safari in iOS).

Steps to Reproduce

Upload a page background image to the styling section. View the page from Safari on an iPhone.

Operating System

iOS

Browser

Apple Safari

History

Dimitris @ 19 Nov, 2024 02:34:46 Assignee
Assigned Dimitris
Dimitris @ 20 Nov, 2024 05:02:37 Assignee

This should now be fixed

Dimitris @ 20 Nov, 2024 05:02:45 Assignee
set this bug to closed
wo100r @ 24 Nov, 2024 09:31:11

I just checked this and it is not fixed. Is there a way for me to add screenshots to show the problem?

Dimitris @ 25 Nov, 2024 05:57:38 Assignee

Yes you can upload an image and paste the BBcode here :)

wo100r @ 25 Nov, 2024 02:09:36

The site I am looking at is this, and you see the background image when you scroll to the bottom: https://www.worldanvil.com/w/world-of-100-realms-wo100r   Here is how it looks on desktop in normal width, when you scroll to the bottom footer:

  In the same desktop browser, if the width is narrowed to the size of mobile, the background is correctly responsive:
  However when viewed in on an iPhone in Safari, the phone's native browser, the background remains unresponsive and looks very bad:
  Thank you! I appreciate the help.

Dimitris @ 27 Nov, 2024 08:40:54 Assignee

Hey there - which theme are you using? Do you have any custom CSS?

wo100r @ 27 Nov, 2024 05:59:12

The theme I am using is Eldritch Horror. There is custom css, but I have tested this on the same theme with no custom css on a private test world and am still seeing the same issue.   If it's an issue with the theme and you know of custom css that would fix if I could easily add it. I tried to correct the issue with css but could not.

Dimitris @ 01 Dec, 2024 04:27:36 Assignee

So I can replicate what you see on my iPhone but also looking at your CSS, there is nothing wrong with it - The background is set to both "fixed" and "cover" and "no-repeat" there are no other rules to put in there to achieve what you want. This is on Safari not supporting it -- which is very odd

You can try to use the secondaries:

-o-background-size: cover; -moz-background-size: cover; -webkit-background-size:cover;

But I find it hard to believe it will work