|
I agree with ladynred. It does not seem practical to use the entire image as a bg.
But if you must:
The xhtml:
<div id="my-div"></div>
The css:
div#my-div{
background:url(path/to/image.gif) no-repeat #000;
width: width of image here.
height: heigh of image here
position:relative; /* assuming you are planning on absolutely positioning elements inside of this div */
}
|