|
Color and Background Properties Background Attachment |
![]() |
||
Color and Background Properties
Color
Background Color
Background Image
Background Repeat
Background Attachment
Background Position
Background
Appearance:
background-attachment: <value>
Possible Values:
scroll | fixed
Initial Value:
scroll
Applies to:
All elements
Inherited:
No
The background-attachment property determines if a specified background image will scroll with the content or be fixed with regard to the canvas. For example, the following specifies a fixed background image:
BODY { background: white url(candybar.gif);
background-attachment: fixed }Authors may also use the shorthand background property, which is currently better supported than the background-attachment property.