
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Backgrounds |
| Previous Style: background-color
| Next Style: background-position
|
background-image
Sets the background image for the element
Support:
-
Notes:
Possible Values:
- none
Displays the background without an image.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
4.0 and later |
4.0 and later |
- url
The file name or full URL of the image to use as the background.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
4.0 and later |
4.0 and later |
Example:
<DIV STYLE="background-image: url(bg03.gif); font-size: 16pt">
<B>One of the most interesting ways to use the background style
is to specify a background image. The browser will tile the
image so that it fills the entire section, like this.</B>
</DIV>
How It Looks:
One of the most interesting ways to use the background style
is to specify a background image. The browser will tile the
image so that it fills the entire section, like this.
| Index
| Current Category: Backgrounds |
| Previous Style: background-color
| Next Style: background-position
|
|