prevent background image from scrolling css code example Example: css keep background image from scrolling background-attachment: fixed;