- AuthorPosts
- December 1, 2020 at 4:24 pm #31808LeeGuest
Hi Jessie,
The Desktop version of my site has layers of transparency, where images and text scroll over the constant main site image. The mobile version does not do that of course. But lately i have seem some blogs that do have that ability. Is there any way i can make the mobile version of my site look more like the desktop version with the transparency and scrolling?
thanks
leeDecember 1, 2020 at 4:25 pm #31813Jesse OwensKeymasterHi Lee-
I checked out your site on an Android device as well as in my browser’s mobile development tools, and it is showing a semitransparent background with your image fixed behind it like you described. Did you already solve this question, or is it behaving differently on an iPhone?
December 2, 2020 at 12:52 pm #31819Lee burbankGuestHey Jessie
On the iPhone it is not transparent. The image is just placed at the top of the page and disappears as you scroll up.Lee
December 2, 2020 at 2:53 pm #31850Jesse OwensKeymasterHi Lee-
I think I remember that we added some custom CSS for your background images on iPhones in a previous thread. Can you paste your custom CSS here? I think we may have set it to scroll and we’ll need to modify that existing code to accomplish this.
December 3, 2020 at 2:51 pm #31884leeGuestJessie
here is the code.boldgrid-css{ background: white; }
ul.nav { padding-inline-start: 40px; }
ul.nav>li>a {
padding-top: 0px;
padding-bottom: 0px;
}
ul.nav>li>ul>li>a {
display: list-item;
list-style: circle;
}
@media (max-width: 991px) {
body.custom-background {
background-size: auto !important;
max-height: 100vh;
background-position: center top !important;
background-color: rgb(35,35,35) !important;
}
}December 3, 2020 at 2:52 pm #31908Jesse OwensKeymasterHi Lee-
Thanks for that! Modify the second-to-last-line from center top !important to fixed !important and that should do the trick.
December 3, 2020 at 7:32 pm #31914leeGuestHey Jessie,
That didn’t work. Made no difference.
December 3, 2020 at 7:47 pm #31929Jesse OwensKeymasterHi Lee-
Thanks for letting me know, I’m sorry I was wrong. I took another look into this and it looks like Apple still hasn’t implemented the fixed background property, even on the newest phones, because it tends to slow sites down and disrupt the scrolling appearance. Sources (1) (2) (3)
It looks like some web designers have found a way to hack around this in the site’s you’ve seen recently with fixed backgrounds on the iPhone, but we’ll need to do some research to see if we can implement those fixes into our themes. It does work on Android devices right now.
- AuthorPosts
- The topic ‘Mobile version – Transparency’ is closed to new replies.