So here's my problem. I set a background image to a page using the following code:
.page-content{
background-image: url("../../../../assets/pages/media/bg/3.jpg");
background-repeat: no-repeat;
background-position: right top;
background-attachment: fixed;
background-size:cover;
}
Seems to work fine. Then I added a little more for the mobile version
@media(max-width:991px){.page-content{
background-attachment: scroll;
}
}
I have tried to set background-size
as cover, initial and even tried playing with the percentages. The problem is that on a mobile device, the background doesn't stay on the screen. When I scroll down, it goes up with the rest of the content.
Any help will be greatly appreciated.