Check out the following CSS code:
#bigwrapper{
background-image: url('http://www.w8themes.com/wp-content/uploads/2013/09/Water-Backgrounds.jpg');
background-repeat: no-repeat;
background-position: fixed;
width: 100%;
}
Here is the corresponding HTML:
<body id="bigwrapper">...</body>
I tried to make the background image stay in place as I scroll down, similar to how I did with my header. However, it didn't work. Here's the CSS I used for the header:
CSS:
.header1{
position: fixed;
width: 100%;
margin: -100px auto;
border: 1px solid blue;
width: 1300px;
margin-left: -8px;
background: rgba(107, 168, 237, .8);
background-position: center;
opacity: 0.7;
}
And here is the corresponding HTML:
<div id="title" class="header1">
<header><h1 ="title1" class="allTitle">The Water Project</h1></header>
</div>