Jump to content

Help required to stop a background image from scrolling and subsequently repeating.


Recommended Posts

Hi there.

 

I'm having trouble with a background image in a shop that I'm currently creating.

 

The page background should remain static whilst everything else scrolls over the top of it, but it's not doing so.

 

Here's the code that I'm using...

 

body, #page, .columns-container{
  background-attachment: fixed;
  background-size: cover;
  }
 
I have edited the few lines following line 243 of the Global.css file for the default bootstrap 1.6 version of Prestashop.
 
(In case you're wondering, I arrived at the above code by "half-implementing" some code from another example. The use of the !important tag was necessary to get the thing to work...although I have no idea why...)
 
Thanks in advance.
Edited by TD426 (see edit history)
Link to comment
Share on other sites

Hi Dioniz.

 

Thank you for the response.

 

The amendment that you did, isn't working, I'm afraid. It's still scrolling with the page and now, instead of duplicating the image underneath the first, there's just white space, so whilst the image, indeed is not repeating, it's not a static background.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...