PDA

View Full Version : background image question



vanskills
Thu 17th Apr '08, 7:19pm
using this

Add a new class to the css with the background color

.newclass {
background: #000000;
}

then edit line 80 of the postbit template and change 'alt1' to 'alt1 newclass'

how would i also use a background image in the post with a picture i have?

i used google and all the options i got didnt work

vbStartup
Thu 17th Apr '08, 10:56pm
background: url(/path/to/image.gif) no-repeat top left;

vanskills
Fri 18th Apr '08, 12:58am
Ya thats the answer i found in google but it doesnt work for me

just turns my postbit black, nomatter what the image is

vanskills
Fri 18th Apr '08, 2:06am
.newclass {
background: url(images/dark_vb/basic.gif) no-repeat top left;

color: #003366


}

i tried that and a bunch of versoins of that and just turns my postbit black

vbStartup
Fri 18th Apr '08, 3:53pm
Make sure the image is uploaded to the correct place. The way you reference it would look for it at

http://thewarcave.com/forums/images/dark_vb/basic.gif

which doesn't exist.

vanskills
Fri 18th Apr '08, 11:07pm
Yea got it to work but was really weird

I had that pic as a jpeg and upload to basic.jpg and wouldnt show up...worked once i changed it to basic.gif and changed the path to point at .gif

no idea why

vbStartup
Sat 19th Apr '08, 10:19am
Cool background image :) Nice to see you got it working.