background-attachment: fixed; properties code example Example: How to make background fixed while scrolling On-scroll fixed background