Example
A simple background-attachment property example:
Laboratory
description & Usage
They use the background-attachment property to determine whether the background image remains fixed or scrolls along with the user's movement.
Values
Values |
Description |
scroll
|
The background image moves up and down along with the user's scrolling.
|
fixed
|
The background image remains fixed.
|
local
|
The background image moves at the same time as all the content.
|
initial
|
Adds this value to its default property.
|
inherit
|
It inherits this value from its parent tag.
|