Specifies the URL for a background image for an element.
Platform Support
IE | Netscape | Mozilla | Opera | Safari |
---|---|---|---|---|
4.0+ | 4.0+ | 1.0+ | 4.0+ | 1.0+ |
Usage
[url(image-url) | "none" ]
Example
To specify a background image in an "images" directory named
myCat.jpg, use the following syntax: body {background-image: url(images/myCat.jpg)}
.
Availability
W3C CSS2