Member Avatar for feoperro

Hi,

I was wondering how developers have stable backgrounds, with scrollable foregrounds.

i.e.
http://forums.devx.com/

Please could someone give a basic piece of sample code to demonstrate this.

Thanks,
-Ashton.

You will have to apply following CSS to the <BODY> tag

background-image: url(myimage.jpg);
background-attachment: fixed;

for example,

<STYLE>
BODY {
	background-image: url(myimage.jpg);           
            background-attachment: fixed;
            background-repeat: no-repeat;
}
</STYLE>
Member Avatar for feoperro

Thanks :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.