How to set a fixed
background image
This example demonstrates how to set a fixed background image. The image will
not scroll with the rest of the page.
The Background properties allow you to control the background
color of an element, set an image as the background, repeat a background image
vertically or horizontally, and position an image on a page.
Background Properties:
NN: Netscape, IE: Internet Explorer, W3C: Web Standard
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.