PROPERTY: background-attachment

background-attachment : scroll | fixed
 
Compatibility:  IE4+  N6
Version: Level 1
Inherited: No
 
The background-attachment property allows you to choose if the background is fixed or scrolls.
 
scroll
 
The scroll value causes the background image to move along with the foreground text and images as you scroll up or down or right or left.
 
fixed
 
The fixed value causes the background to remain fixed in place. The foreground text and images move over the fixed background as you scroll up or down or right or left.
 
Code:
body
{
  background-image: url("anasazi.tif");
  background-attachment: scroll;
}
 
html
{
  background-image: url("anasazi.tif");
  background-attachment: fixed;
}

 
Output:
Click to see example in a separate window


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information