Fixed background image
-
Hi,
I’ve set a row image background and assigned a class name to lock the background position when the page is scrolled down.
With this declaration nothing happens, the background image still scrolls with the page:
background-attachment: fixed;
In this way the row element is override by others elements:
position: fixed;
Thanks in advance for your help.
-
Dear @dmncn
Can you post a link to your website?
We will then have a look and inspect that!
Many wishes!
Marius -
Dear @mariusjopen
I’ve sent you the link with an email.Thanks
-
hey everybody
background-attachment: fixed;
only works for images that are set via
"background-image:" via CSShowever, the row background images are normal <img> tags so this won't work
maybe think about using the cover feature
i don't have time to think of custom css for this case sorry!good luck!
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it