Something wrong with code for background

Why won’t the background picture show? What am I doing wrong?

I need help or I can’t continue. Please help!

I was able to set the background by setting the URL directly in the CSS. Is there a specific reason you’re trying to set it through Javascript?

I have been watching videos on how to do this and that is what they did. That’s the only reason.

Okay, I put everything in CSS but I didn’t change anything. Am I supposed to? 'cause it is still not working.

This is my first time designing a web page and I am still trying to figure everything out.

You can’t paste the Javascript function into the CSS. You have to set the CSS background attribute manually.

I’m getting really stressed right now, so I’m going to step back for a little bit and just relax. I’ll work on this project later. Thanks for your help.

This might help you out a bit. :slight_smile:

1 Like

omgoodness! Thank you so much! That is a lot of help! I feel so much better! :+1: :slightly_smiling_face: :grinning:

You won’t believe it, but I am actually incredibly dizzy with relief. I better go lie down. Thank you!

1 Like