Mine says "expected rbrace" as well and Ive also tried moving it around but nothing seems to work


#1

I have the same exact problem, my code is right and I have a matching brace. Mine says "expected rbrace" as well and Ive also tried moving it around but nothing seems to work.


Stuck on css 8/10. trouble with background image
#2

You can post your code and we can help you.


#3

.hero {
background-image: url
("https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-2/bg.jpg"); background-size: cover; font-family: "Trebuchet MS", Helvetica, sans-serif;
}

It is the first "(" right before the https that's highlighted in red, and says "expected rbrace."


#4

Your background-image's url and that bracket needs to be beside each other with no space. Spacing is pretty important in HTML and CSS sometimes! Be careful.
Should look something like this:

.hero {
    background-image: url("https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-2/bg.jpg"); 
    background-size: cover; 
    font-family: "Trebuchet MS", Helvetica, sans-serif;
}

#5

Thank you! It worked perfectly


#6

This topic was automatically closed after 7 days. New replies are no longer allowed.