This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
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
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.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
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;
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.