htmlcss

The background-attachment property is used in CSS and certain HTML elements. If a background-image is specified, this property determines whether that image's position is fixed within the viewport, or scrolls along with its containing block.


Values


HTML example:

<body style="background-image:url('Wiki.png'); background-attachment:scroll;">
Body content.
</body>


CSS example:

body {
      background-image:url("Wiki.png");
      background-attachment:scroll;
}