This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Albeaudin
over 8 years

15/21 Set the body's "background size" to "cover"???????

I absolutely cannot move past here. As far as I can tell, I HAVE set the background size to “cover” and it keeps telling me I didn’t. I’ve tried everything. Please help. Here is what I have…(also, no image comes up. Just a question mark)

thanks

Answer 55f1914095e3781afa00056d

0 votes

Permalink

Hi Albeaudin,

Do you really have all of those extra { and } in your CSS code?

body {
    background: url("gttps://codeacademy-content.s3.amazonaws.com/courses/web-beginner-en-3pc6w/images/splash.jpg");
}{background-size: cover;
}{background-position; center center;
}{background-repeat: no repeat;
}{background-attachment: fixed;
}{font-family: Helvetica;
}{color: white;
}{text-align: center;
}

body {
text-align: center;
}

body {
text-align: center;
}

I’m also a bit curious about why you have three different body rules. Those aren’t making any difference to how the browser is going to interpret your code but it is repetitive and unnecessary.

points
Submitted by Judy
over 8 years

2 comments

Remon Medhat over 8 years

u have to put a semicolon at the end of the image url: like this : background:url(“https://pbs.twimg.com/profile_images/599706087982387200/zDB_bXWo_400x400.jpg“ ); <—— u didnot do this :D background-size: cover;

Judy over 8 years

Hi Remon Medhat, I’m not sure if we are looking at the same code. I can definitely see @Albeaudin’s semicolon at the end of that line.