I am not asking how to make a background image, I know how to do that. I am asking how to apply a fixed background which stays the same throughout the site without moving. Scrolling up/down will move through the slides content. My current code sets the background image to the first slide and the subsequent slides are white.
This is what I have so far:
HTML:
<div id="fullpage">
<div class="section" id="section0" data-anchor="thisSection0">
<h1>Section0</h1>
</div>
<div class="section" id="section1" data-anchor="thisSection1">
<h1>Section1</h1>
</div>
<div class="section" id="section2" data-anchor="thisSection2">
<h1>Section2</h1>
</div>
</div>
CSS
#fullpage {
background-image: url('images/bg1.jpg');
}
SCRIPT
$(document).ready(function(){
$("#fullpage").fullpage({
anchors: ['thisSection0', 'thisSection1', 'thisSection2'],
responsive: 900,
navigation: true,
navigationPosition: 'right',
navigationTooltips: ['Section 0', 'Section 1', 'Section 2']
});
});