Where knowledge empowers you to understand your world

CSS Tutorials: How To Prevent A Background From Scrolling With CSS

If you need to prevent your background image from scrolling with the page, you can do so using the following CSS code:

body {
    background-image: url("path/to/image");
    background-attachment: fixed;
}