digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Web Development, Design (https://www.digitalfaq.com/forum/web-design/)
-   -   Able to lock a BG image? (but not the above content?) (https://www.digitalfaq.com/forum/web-design/3362-lock-bg-image.html)

naimeiiz 08-10-2011 04:01 AM

Able to lock a BG image? (but not the above content?)
 
Hi all...

Just wondering if its possible to lock my BG image image so that it does not scroll, but the content (consisting of images) does scroll 'above' it...

ie. the content of the page moves independently to the BG?

I mostly use Dreamweaver3 and am happy to use extensions or edit html if needed.

That said though I'll try any suggestions that present a solution...

Also wondering if there is a term for what I'm trying to do that would help me search for an extension or solution?

Thanks!

admin 07-24-2013 10:17 AM

This was a spammer, but I'll briefly answer anyway...

This can be done with CSS.

A fixed background doesn't scroll with the page. The content scrolls over the background image, which remains stationary. To lock the background in place so that it doesn't scroll, use this:

Code:

background-attachment: fixed;
You also may need this:

Code:

body {margin: 0px;}
And that's basically it.


This was an unanswered question or unresolved issue found during a site audit. It's hard to have an FAQ when the answers are missing, or final outcomes are unknown. At The Digital FAQ support forum, questions are never intentionally ignored, and may have been missed due to a forum glitch or human error. More details on the audit. (In some cases, threads have been edited/updated with newer information.)



All times are GMT -5. The time now is 07:45 AM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.