Cant use url to give background to the body

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

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

Thanks for your help. It worked.

1 Like

@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

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

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

1 Like

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

freecodecamp.org/imgr/MJAkxbh.png
that link provided in challenge is not work for me

@femtopy2k, if you’re having a problem with one of the lessons please use the Get Help button in the lesson. That will create a new thread in the correct forum and also provide a copy of your code so that we can give you help. Without that, we can only guess as to what your problem may be.