• Welcome to The Cave of Dragonflies forums, where the smallest bugs live alongside the strongest dragons.

    Guests are not able to post messages or even read certain areas of the forums. Now, that's boring, don't you think? Registration, on the other hand, is simple, completely free of charge, and does not require you to give out any personal information at all. As soon as you register, you can take part in some of the happy fun things at the forums such as posting messages, voting in polls, sending private messages to people and being told that this is where we drink tea and eat cod.

    Of course I'm not forcing you to do anything if you don't want to, but seriously, what have you got to lose? Five seconds of your life?

Images on a stylesheet

Superbird

Fire emblem is great
I have this style sheet for a homemade website. Under the ".body{" class, I have "background: #809def; ". It gives me the perfect color every time. Then, I try inserting an image, called "bg_image.png". I put "background: bg_image.png; ". It turns up white, like it just isn't working. Any ideas what I'm doing wrong with the thing?

P.S. All of this is in the same folder; I SHOULD be able to use relative linking, which is what I think I'm doing.
 
I think it needs to be

Code:
background: url('bg_image.png');

Though you can also just do

Code:
background: #809def url('bg_image.png');

so you don't have the background property twice there.
 
Last edited:
Never mind--I just got it to work. Thanks for the help, people!

New question: how do you make text or menus that are automatically on every page of the site?
 
Back
Top Bottom