fixed background scroll code example
Example 1: how to make fixed background image in css
body {
background-image: url("img_tree.gif");
background-repeat: no-repeat;
background-attachment: fixed;
}
Example 2: How to make background fixed while scrolling
On-scroll fixed background