The background-attachment property specifies whether a background stays fixed on the screen. Possible values are "fixed" (background stays in the same place when scrolling) and "scroll" (background moves with the rest of content when scrolling).
Below are two examples:
body {background-attachment: fixed;
background-image: url("yp.jpg");
background-repeat: no-repeat;
}
|
body {background-attachment: scroll;
background-image: url("yp.jpg");
background-repeat: no-repeat;
}
|
|
|
|
Next: CSS Background-Color
Link to this page: If you find this page useful, we encourage you to link to this page. Simply copy and paste the code below to your website, blog, or profile.
More Tutorials: SQL PHP HTML
Copyright 2007-2009 1keydata.com All Rights Reserved. Privacy Policy
|
|