Posts: 169
Location: Southern Alberta, Canada
|
All of the above. You can format it inside your stylesheet, or in the head of your page like this:
Code:
body {
background: url("image.jpg") repeat-x #fff;
}
You can change out "body" for any other element you want to put the background on. The reason the "#fff" is still in there is because when the background runs out, it needs to know what to fill the space with.
It's also advisable that you incorporate some positioning in there (like jolley_small did):
Code:
body {
background: url("image.jpg") top left repeat-x #fff;
}
"repeat-x" is interchangeable for "repeat-y" and "no-repeat" aswell. "top" and "left" can be interchanged with bottom, right, middle, or even values (like em, px, %, etc.).
Last edited by collyer_1 : 03-28-2006 at 02:24 PM.
|