Log in

View Full Version : Background image not displaying in Firefox and more...



englishyankee
11-19-2008, 09:45 PM
I just started using basic CSS rather than all HTML and while my page is perfect in IE7 and Netscape, it's not displaying properly in Firefox or Opera. Have no clue about Safari.

In Firefox, the background image is not displaying, music not playing and the ghost script isn't working. It's for my daughter's Halloween photos. I've only added a few photos just to test.

In Opera, the music works but the background doesn't show nor the floating ghost script.

I have usually found if it doesn't work in Firefox it won't work in Netscape but for some reason Netscape, in this situation, is fine.

Wasn't sure if I should post the link or the code, but here's the link:

http://www.angelfire.com/magic2/stork/CaiaHalloween2008Test.html

Any help would be greatly appreciated.... thanks!

cbier
11-23-2008, 09:29 PM
please post the css code

Snookerman
11-23-2008, 09:43 PM
Here you go (got it by clicking "view source"):
http://www.angelfire.com/magic2/stork/thumbnailviewer.css

cbier
11-23-2008, 09:52 PM
Thanks but thats the wrong one. i found it though.


<style type="text/css">
<!--
body { font-family: Georgia, "Times New Roman",
Times, serif;
color: white;
{background-image: url(HHBg1.jpg);}

a:link {color: #669966;}
a:visited {color: #99cc66;}
a:active {color: #ff3333;}
a:hover {background-color: #ff9900;}
a {text-decoration: none;}
p {font-size: 20px;}

-->
</style>

If you look at


body { font-family: Georgia, "Times New Roman",
Times, serif;
color: white;
{background-image: url(HHBg1.jpg);}

more specifically


{background-image: url(HHBg1.jpg);}

try removing the first { before background-image. that should do the trick. For the background at least.

englishyankee
11-24-2008, 03:27 PM
Duh! I knew that, LOL! Thanks so much, it DID work. Music still not playing and script for ghosts doesn't work in Firefox, either. Solved the problem by not using CSS and just HTML. All works now but I've never tested Safari.

Thanks so much!

cbier
11-25-2008, 04:03 PM
no problem, unfortunately I don't know about the music or the ghost script. But good luck.