Hi,
I was wondering how developers have stable backgrounds, with scrollable foregrounds.
Please could someone give a basic piece of sample code to demonstrate this.
Thanks,
-Ashton.
Hi,
I was wondering how developers have stable backgrounds, with scrollable foregrounds.
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>
Thanks :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.