Why wont my code work??? It says “The image you are requesting does not exist or is no longer available.” and says it’s not correct.
Your code so far
<style>
body {
background: url("https://i.imgur.com/MJAxbh.png");
}
</style>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
.
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
zivaev
July 5, 2018, 4:29pm
#2
Use background-image: url() instead of background
Hi @ashleighmmeadows
The property must be " background-image: url(" "); "
i just used this code and it worked just fine :
Answer :
<style>
body {
background: url("https://i.imgur.com/MJAkxbh.png");
}
</style>
zivaev
July 5, 2018, 4:31pm
#5
Moreover, the link you provided says that image is removed, so you cannot set background using that link.
Well the link is actually https://i.imgur.com/MJAkxbh.png
with MJAkxbh.png
and not MJAxbh.png
but he missed “k” in that link.
The background: url( )
needs just a valid url to display
Thanks! I didn’t realize that I left out the k.