Backgrounds all around (CSS)
The background property is used to set an image as a background of something, such as the whole page or a div or even a table cell. This is best don using CSS.
Example:
- BODY { background: white url(mainBG.gif); }
The background-repeat property specifies how a background image is repeated.
The repeat-x value repeats the image horizontally
The repeat-y value repeats the image vertically.
Example:
- BODY { background: white url(mainBG..gif);
- background-repeat: repeat-x }
This code will create a background image for the body of your html document that is repeated horizontally across the screen.