Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to put an image in the backg

Status
Not open for further replies.

Tee1212

Vendor
Mar 26, 2001
82
0
0
US
I want to put an image in the background but I don't want it to tile (just want one image). Is there a way to change the default on this or any other way around it?

Thanks!
 
use css ...

body {
background-image: image.gif;
background-repeat: no-repeat;
}
 
Queation is if u have to place it as bgr image? Just put in the layer and stack in the bottom. ...........................Mtj
 
here.
this will make the background image static (i.e. when you scroll down, the image will stay (no tiling, or stretching or anything like that). looks awesome :D)

<script language=&quot;JavaScript1.2&quot;>

if (document.all||document.getElementById)
document.body.style.background=&quot;url(xxx.xxx') white center no-repeat fixed&quot;

</script>

where xxx.xxx = your image file

the above, courtesy of (or bloody sheer coincidence)

Goste
----------
The man with the dumb name...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top