Background-attachment can be fixed or scrolled as per requirement.
- <style>
- #bacground_img {
-
- background-attachment: fixed;
-
- background-image: url("img/beach.jpg");
-
- background-position: center center;
-
- background-size: cover;
-
- vertical-align: top;
- }
- </style>