This forum is now read-only. Please use our new forums at discuss.codecademy.com.

About You Forum

View Course » View Exercise

269 points
5564f00ee39efef2eb00087a_400249550
Submitted by
RAINBOWSWIRLZ
over 2 years ago

14/21 [resolved] Why didn't the background image show up?

The background only appears white, but I can still work.


1 vote

permalink

The must be something not quite right with your code. If you show us then we can help spot the problem.

3698 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 2 years ago

7 Comments

5564f00ee39efef2eb00087a_400249550 RAINBOWSWIRLZ over 2 years ago

The program accepted it and I finished it, but the background just appeared white.

<!DOCTYPE html>

body {
text-align: center;
background: url("https://codecademy-content.s3.amazonaws.com/courses/web-beginneren-3pc6w/images/splash.jpg");
color: white;
font-family: Helvetica;
}


<!-- I'm a comment. You won't actually see me on the web page.
You should write your header in the line below me! -->
Hi! I am learning to make my very own web page!

55df2afa95e3787b9200005e_359368177 Judy over 2 years ago

https://codecademy-content.s3.amazonaws.com/courses/web-beginneren-3pc6w/images/splash.jpg does not lead to an image file. It looks like you are missing a hyphen: beginner-en-3pc6w

5564f00ee39efef2eb00087a_400249550 RAINBOWSWIRLZ over 2 years ago

ok thank you!

55df2afa95e3787b9200005e_359368177 Judy over 2 years ago

You're welcome!

557d880776b8fe1596000434_415509352 battledj about 2 years ago

Please tell me how to link to your own pic

55df2afa95e3787b9200005e_359368177 Judy about 2 years ago

Hi battledj, first you must upload your file to a place like imgur.com or Dropbox. Those sites will then give you a URL for the uploaded image that you can use in your code.

557d880776b8fe1596000434_415509352 battledj about 2 years ago

ok thanks :)