CSS Background

They have: 59 posts

Joined: Apr 2003

I can't get it to show up and spent hours staring at the code and just cannot figure out what I've done wrong! Please help! Shocked Here's the code:

Here's the link (Please overlook the foolishness - I'm learning..)
http://www.bellybytes.com/practice/css.html

and I did load the background - you can even see it! Smiling:
http://www.bellybytes.com/practice/bg.gif

I've been doing text with CSS for a while and thought it was time I ventured into more of CSS - love it! - and everything was going perfect and then this. Sigh. Anyone? Thanks!!

Busy's picture

He has: 6,151 posts

Joined: May 2001

try background-image: url("bg.gif");
quotes around bg.gif if that doesn't work, try add "practice/bg.gif"

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Quote: I've been doing text with CSS for a while and thought it was time I ventured into more of CSS - love it! - and everything was going perfect and then this.

Just a word of encouragement. Don't give up. There is plenty of help here. Wink I speak from experience...of a css dummy once.Laughing out loud

They have: 59 posts

Joined: Apr 2003

Thanks, busy, I'll give your suggestions a try tomorrow - ready to call it a night for tonight. Been sitting on my numb butt for 14 hours today - shame, huh! Total addict. Anyway, I hope one of those works- I'll let you know!

"Just a word of encouragement. Don't give up. There is plenty of help here. I speak from experience...of a css dummy once."

disaster-master, thanks! Laughing out loud I won't give up - although I had to finally on that background today. And I had just been thinking to myself, "Gosh, this stuff is easy - and fun, why didn't I get into it more sooner"! Then this happened. Arg. Well, it's good to know I can get help - no, make that GREAT, as no one in my little world likes, does or even cares about all this "stuff" as they refer to it.

Thanks again, both of you!

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Quote: as no one in my little world likes, does or even cares about all this "stuff" as they refer to it.

LOL.....yes, I know what you mean. My husband refers to everything as "javascript". He doens't even know what that is. Wink

He always says, "You better leave me alone woman or I will go put some javascript on your computer and make it blow up."

But when he wants to order something off the net it's "baby this and baby that". Laughing out loud

They have: 59 posts

Joined: Apr 2003

LOL disaster-master - that is so much like a man!!! Gotta love 'em though, huh! Wink

Well, I'm still having problems. I tried both suggestions - practice/bg.gif and the quotations, and neither worked. I'm really stumped on this one. I read the instructions over and over, looking at the code over and over - every semi-colon, but I just can't get this to work. If someone can figure this out, I'd sure appreciate it! Thanks again.

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Actually, I think all you need is:

body { background-image : url(bg.gif); }
A:link, A:visited, A:active { text-decoration:none }
A:hover { color:#ff3300 }
-->

They have: 59 posts

Joined: Apr 2003

Thanks, disaster-master!! It works now - at first I didn't see the space you added before and after the colon, I just noticed the "}" at the end, but now I just saw that and that got it working - I owe you! I was tearing my hair out over this one. The tutorial I used has it exactly as I did have it - shame on that writer! Wink

(gosh, that background looks like it belongs on someone's home pages on geocities... Laughing out loud )

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

actually, it was the space she removed, not the spaces she added -- it's url(), not url () -- the spaces make a difference, just like if they occur in the middle of a wo rd.

They have: 59 posts

Joined: Apr 2003

Oh, you mean the space removed by the bg.gif - thanks! I thought it was adding that space. You do learn something new every day!

They have: 59 posts

Joined: Apr 2003

I just want to add another, big, THANK YOU! to everyone - this really was driving me batty, but I won't forget it now, that's for sure!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.