Need assistance in create-texture-by-adding-a-subtle-pattern-as-a-background-image

Need assistance in create-texture-by-adding-a-subtle-pattern-as-a-background-image
0

#1

Challenge Name

create-texture-by-adding-a-subtle-pattern-as-a-background-image has an issue.

Issue Description

Submit completed challenge and it says “keep trying”, am I making some silly error or is there a bug?

Browser Information

Epic and Firefox

Screenshot

Your Code



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


#2

You’re forgetting quotes:

background: url("https://i.imgur.com/MJAkxbh.png");

Was this the issue you were referring?


#3

Oh sh*t, sorry, it seemed to work on the screen without the quotes but then when I submitted it wouldn’t accept it


#4

Yeah, I had the same problem. Instructions are unclear in this lesson.


#5

So glad I found this thread. This has been bugging me for ages. It totally does appear to work without the quotes!


#6

For me it was not passing the test because of a space between ‘background’ and the following colon…


#7

i checked it out and html links are all quoted


#8

Just because browsers allow it, doesn’t make it syntactically correct. If you check the docs: MDN - background-image, it clearly shows that the url should be quoted.

However, the fact that it looks like it’s working is confusing. I personally think this could be rectified with a better error message and / or adding explanation to the stub of “Get a hint”.