Archived topic
Insert background image inside Mobile slideout menu
5 replies · Started by Samuel on March 25, 2021
hi,
I'm trying to add a background image inside the mobile slide out menu but it's not working...
Here the CSS I'm using :
#generate-slideout-menu {
background-image: url("/wp-content/uploads/2021/03/Logo-filigrane.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-size: 50%;
}
What could I do better ?
Thanks for your help
Hi there,
i wouldn't use background-attacment: fixed for mobile as iOS devices don't like that.
If thats not the issue the can you share a link to where i can see the issue?
Hi David,
You'll find link in Private Information.
So i can see the background on desktop responsive views.
On iPhone i cannot and that is because of the background-attachment: fixed; property.
Most mobile browsers don't support fixed background images, and iOS devices mess them up entirely by scaling them up to a huge size.
Remove that property and you should see the image.
Thanks a lot David that was it.
You're welcome