PDA

View Full Version : Easy Way To ,ake an Image a background?


T Pat
04-13-2004, 11:13 PM
Does anyone know of any easy way to turn an image into a website background?

dareutwo
04-13-2004, 11:16 PM
On your desktop or on a web page?

T Pat
04-13-2004, 11:20 PM
LOL Webpage, I allready accidently saved a whore as the background on my deaktop trying to figure it out

dareutwo
04-13-2004, 11:22 PM
Ok, so I can't read.. sue me.. lol

img src="background.gif"

If it's a simple gif, make it like 1 by 800 pixels... it will tile (scroll down) on it's own.

dareutwo
04-13-2004, 11:24 PM
Ok, it's been awhile since I've done this.

In the head tags =
replace 'bgcolor=" with "background=youfile.gif"

dareutwo
04-13-2004, 11:33 PM
http://www.wdvl.com/Graphics/Techniques/Backgrounds.html

This explains the whole thing a Ton better than I ever could.
that, I can't find a URL where I've used it very quickly.

T Pat
04-14-2004, 06:23 AM
Thanx for the help Dareutwo
I wanted to use a single image but am starting to think I need to figure out another way

urb
04-14-2004, 07:05 AM
You can use background images for :-

1) A whole page...
<BODY BACKGROUND="images/background.jpg">

2) A cell of a table...
<TD BACKGROUND="images/background.gif"

Example 1 will tile (repeat) over the whole page, so the actual size of the image is important.

Example 2 will be constrained by the size of the table cell, but will repeat itself, if smaller than the table cell it is in.

You can also use CSS to show a background only once, like this...
background-image:url(images/bkground.gif); background-repeat:no-repeat;

T Pat
04-14-2004, 09:43 AM
|bananna| Thanx Urb Example Two is exactly what I was after