View Full Version : CSS background help.


guard_girl2004
03-01-2005, 02:46 PM
I'm trying to do a fixed background with CSS.. the thing is, it won't work. Here's the code I have so far:

body
{background: #000000;
background-image: C:\Documents and Settings\Virginia\My Documents\Website Stuff\background.png;
background-attachment: fixed;

font-family: Comic Sans MS, Tahoma;
color: #FFFFFF;
font-weight: bold;
font-size: x-small;}

Is it not showing because it's still on my computer and not online? (I didn't think that matters..)
Thing is, I have NEVER gotten this thing to work, at all. I always just used the <body background> tag right after head.. but since I need the fixed background and only IE supports that one tag with the fixed.. of course, maybe IE only supports that fixed up there as well? o.o I don't know, but I'm like pulling my hair out because it's ticking me off so bad.. (and watch it be one little mistake. @.@)

pb&j
03-01-2005, 02:56 PM
other browsers will support it if it is done in css.
bgproperties may be the IE specific thing.

body
{background: #000000;
background-image: url(C:\Documents and Settings\Virginia\My Documents\Website Stuff\background.png);
background-attachment: fixed;
font-family: Comic Sans MS, Tahoma;
color: #FFFFFF;
font-weight: bold;
font-size: x-small;}

you were missing the url() part.
if your webpage is online, then yes, the image should be online and the coding should be pointing to it there.

guard_girl2004
03-01-2005, 03:13 PM
*mouth drops* o.o I feel so stupid now... thank you so much for helping me! Even with it being stupid.

pb&j
03-01-2005, 05:17 PM
no worries.
the only stupid question is the one not asked.
ask and learn.