background attachment « CSS « HTML / CSS






1.'background-attachment' Example
2.Use background-attachment:scroll to scroll a background image when the user scrolls the content. This is the default value.
3.Use background-attachment:fixed to prevent the image from scrolling.
4.background-attachment: fixed;background-position: center;
5.background-attachment: fixed;
6.Set background-attachment to fixed
7.background-attachment: scroll