Home » CSS Tutorial » CSS Properties » background-attachment
background-attachment
CSS Property Info :
| Syntax: |
background-attachment: <value> |
| Possible Values: |
scroll | fixed
|
| Initial Value: |
scroll |
| Applies to: |
All elements |
| Inherited: |
No |
CSS Browser Support :
Internet Explorer 4+
Netscape 6+
Opera 4+
W3C's CSS Level 1+
CSS Profile 1.0
CSS Property Description :
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.
CSS Bugs / Problems :
none
Adapted by style-sheets.com, maker of Style Studio, powerful CSS Editor for Windows.
Copyright © John Pozadzides and Liam Quinn. All rights reserved.
Home » CSS Tutorial » CSS Properties » background-attachment
|