Click to See Complete Forum and Search --> : Wtf?


Ravasz
08-11-2009, 09:56 PM
Why are code and I not getting along at all lately?

http://www.dreamwatersprings.com/something.htm
My background images are not showing up.

There are two: bg.jpg and bg_song.jpg for the menu.

Currently using this code:


<style type="text/css">
body {
background:#ffffff url('bg.jpg') no-repeat fixed;
}
</style>


I switched the code around every single which way - I broke it up into separate lines (background-color, background-image, etc), I put it into its own CSS document and linked it to the page, I placed a style tag inside the actual body tag... I even canned the whole CSS bit and tried plain old:


<body background="bg.jpg" bgproperties="fixed">


Nothing. No one else can magically see the backgrounds, right?

And before you ask the most simple, stupid question... yes. My background files are uploaded to the same directory as the HTML pages. And the file names are spelled correctly/consistently.

What on earth am I doing wrong now? What would prevent the background images from showing up on such simple pages? The pages look fine on my hard drive! D:

infinityspiral
08-11-2009, 10:21 PM
Hmm do you have funky stuff going on in .htaccess files? If not, maybe your images are corrupted. I don't get 404 errors loading your images, but they do show up as having a width and height of 0px which would cause them not to display. When I load the images in their own tab, they are displayed as text, not actual images.

Ravasz
08-11-2009, 11:20 PM
D:

Okay. After I read your post, I figured it wasn't the .htaccess, as other files in the directory aren't affected. The images in question were freshly made/saved via Photoshop today, so I don't know why they would be corrupt...

So that brought me to reuploading the files. And I don't think my 'auto' feature is working, because once I manually selected BINARY, the images seem fine.

Thanks for responding anyway, because by process of elimination it helped me figure out what was wrong. And prevent me from tearing more hair out. :]

infinityspiral
08-11-2009, 11:25 PM
Excellent- cool image too btw