PDA

View Full Version : Scrolling Content But Not Background


blanchard
11-28-2006, 03:00 PM
How do I create a scrolling website with a non-scrolling backgound see link below
www.cnet.com

HeadAche
11-28-2006, 03:17 PM
.bannerBgImage {
background-image: url(/images/header_right.gif);
background-attachment: scroll;
background-repeat: no-repeat;
background-position: center center;


see background-attachment, scroll means it moves with the scroll, 'fixed' would mean the bg image would stand when scrolling.

blanchard
11-28-2006, 03:31 PM
Cheers Headache

domedia
11-28-2006, 05:11 PM
If I'm not mistaken, this is default. All background images work like this, so you shouldn't even have to specify it.