background-image

background-image

CSS background-image Property
The CSS background-image property is used to specify the URL to an image resource to use as an HTML element's background. In CSS3 this property receives an upgrade allowing you to place multiple background images into one element, see the related examples below for that.
CSS CODE EXAMPLE
<style type="text/css">
#myID {
    background-image:url(myBG.jpg);
    width:480px;
    height:230px;
    padding:10px;
}
</style>
<div id="myID">div content ...</div>
 
div content ...

Possible Values:

url()
A reference to an image file on your website server using a relative path, or full path domain referencing.

0 Response to "background-image"

Post a Comment