The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Backgrounds |
| Previous Style: background | Next Style: background-color |


background-attachment

Controls whether the background image scrolls along with the page text.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later Not supported
Notes: Possible Values:
fixed
The background image doesn't scroll with the text.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later Not supported

scroll
The background image scrolls with the text.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later Not supported

Example:
<BODY STYLE="background-image: url(bg03.gif); background-attachment: fixed">

| Index | Current Category: Backgrounds |
| Previous Style: background | Next Style: background-color |