Cant use url to give background to the body

Cant use url to give background to the body
0

#1

Tell us what’s happening:
The tutorial is telling me to add a background property using the given url. I have tried both copying and typing the url but every time I try to run the test, it says the following : “Your body element should have a background property set to a url() with the given link.”

Can anyone please help what is wrong here with my code?

Your code so far


<style>
  body {
    background: url(https://i.imgur.com/MJAkxbh.png)
  }
</style>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/create-texture-by-adding-a-subtle-pattern-as-a-background-image


#2

A css url() call expects a string argument. You have not given it a string.


#3

Thanks for your help. It worked.


#4

@mitul88 if @zapcannon99 solution worked please make sure to mark their answer as the solution to your question.

Next to where there is the heart to like their comment there should be a little box that says solution. So everyone can know this question is taken care of.

Thanks.
-Nao


#6

solution:
background: url(“https://i.imgur.com/MJAkxbh.png”);


#7

no, there’s a checkbox in my post, don’t post your solution if you can help it lol


#8

this worked for me:
background: url(https://i.imgur.com/MJAkxbh.png);