Page 1 of 1

Background code help

PostPosted: Tue Jan 27, 2004 4:00 pm
by gpwed
if I wanted this to be my background :

http://www.freestockphotos.com/SKY/BeamCloudsX.jpg

What code would I use to make it appear. I have tried several ones and none have actually worked.

I am using basic html and even when I know the code is right , it doesnt seem to work.

PostPosted: Tue Jan 27, 2004 8:35 pm
by ilanphoto
THis should ork just change the image location
You should also check that you can direct link to the image you want and that it is not too big for it will delay the load

body
{
margin-bottom: 20px;
margin-top: 0px;
background: black;
background-attachment: fixed;
background-repeat: repeat;
background-position: center center;
background-image: url(http://www.pbase.com/image/24662979/medium.jpg);
margin-left: 0.1in;
margin-right: 0.1in;
}

PostPosted: Wed Jan 28, 2004 1:46 am
by srijith
Just to add to Ilan's post, his code is CSS and should be included into a CSS sheet and not into the HTML directly.

PostPosted: Wed May 05, 2004 10:51 pm
by btfx572
what if i would want to just have the background once... so like its fixed/doesnt repeat... :?:

PostPosted: Wed May 05, 2004 11:46 pm
by oochappan
btfx572 wrote:what if i would want to just have the background once... so like its fixed/doesnt repeat... :?:

see examples in my site ..... source