Jump to content
Sign in to follow this  
gayatriom

Upload a Background Image- But keep it fixed not scrolling.

Recommended Posts

gayatriom

Hey. How Can I Upload a Background Image, but keep it fixed? So that the canvas moves but not the image. Thanks!

Share this post


Link to post
Share on other sites
Kate

Hi Gayatri - You would need to use the background-attachment property. So, assign the background to the element you want, and add: "background-attachment:fixed" to it. Or, shorthand:

#elementName{background:url('urlhere.jpg') no-repeat fixed;}

You can find more info here: http://www.w3schools.com/Css/css_background.asp

Share this post


Link to post
Share on other sites
gayatriom

Hey Katie. I somehow can't find the exact code for this in the platform pro files. If I could then I would just add in this property. I find the page canvas background color code, but not the background image code.

Share this post


Link to post
Share on other sites
Kate

Can you give us a link to your site and a link to the image you want displayed? Then we can go from there...

Share this post


Link to post
Share on other sites
gayatriom

I found the code. Now put the above code into the custom code section.

Share this post


Link to post
Share on other sites
gayatriom

Man. Still no luck. Been playing around with it .

Share this post


Link to post
Share on other sites
gayatriom

It worked!! Done! Thanks for your help. Now to the next issue! :)

Share this post


Link to post
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

Sign in to follow this  

×