Horje
background-attachment Code Example
html static background
body {
  background-image: url("img_tree.gif");
  
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  
  background-size: cover;
}
background-attachment
The background-attachment property specifies how the background moves relative to the viewport.

To set this movement, we use the values scroll, fixed or local. The scroll keyword is the default where 
the image scrolls with the main browser window but is fixed with respect to the element it is the background of. 
Using fixed means the image is fixed so as you scroll the element will appear like a window to the image beyond. 
If you use local, then you can scroll the main browser viewport and within the element.

    
/* Keyword values */
background-attachment: scroll;
background-attachment: fixed;
background-attachment: local;




Css

Related
restrict css to apply on div Code Example restrict css to apply on div Code Example
mysql_config not found Code Example mysql_config not found Code Example
html css drow line Code Example html css drow line Code Example
how to make text disappear after a certain length css Code Example how to make text disappear after a certain length css Code Example
reset the entire box model Code Example reset the entire box model Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8