Learn how to add a backgroud image that doesn't move as a page is scrolled.
This short tutorial will show you how use a fixed background image. With a fixed background, the background image doesn't move as the page is scrolled.
Place the following code in the head section of you page.(between <head> and </head>)
Code:
------------------------------------------------------------------------
<style type="text/css">
body
{
background-image:
url("/images/image.gif");
background-repeat:
no-repeat;
background-attachment:
fixed
}
</style>
------------------------------------------------------------------------
The background image can also be positioned on the page by using the background-position property.
Code:
------------------------------------------------------------------------
background-position: center
------------------------------------------------------------------------
Other values besides center can be used with background-position.