Board index PBase HTML and Style Sheets Background code help

HTML and Style Sheets

Background code help

Customize your galleries.
gpwed
 
Posts: 21

Background code help

Post Tue Jan 27, 2004 4:00 pm


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.

ilanphoto
 
Posts: 876


Post Tue Jan 27, 2004 8:35 pm


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;
}

srijith
Moderator
 
Posts: 2321
Location: Amsterdam


Post Wed Jan 28, 2004 1:46 am


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.

btfx572
 
Posts: 3


Post Wed May 05, 2004 10:51 pm


what if i would want to just have the background once... so like its fixed/doesnt repeat... :?:

oochappan
 
Posts: 131


Post Wed May 05, 2004 11:46 pm


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


Board index PBase HTML and Style Sheets Background code help

Who is online

Users browsing this forum: ClaudeBot and 0 guests