+ 1

[Solved]Why isn't the background image working?

https://code.sololearn.com/Wc3187bKsYRc/?ref=app

21st Jun 2020, 6:48 AM
Sameer Crestha
Sameer Crestha - avatar
2 Antworten
+ 1
In your css, you have: body { background-image:src('https://www.freewebheaders.com/wp-content/gallery/high-tech-hero-headers/blue-high-tech-background-full-screen-header.jpg'); } Instead of "src:", it should be "url:". Now, I checked with the correction, and it seems the image you're using doesn't accept remote embedding (it throws an HTTP 403 Unauthorized error). Try using another image, or uploading it to another site that accepts hot linking, such as imgBB: https://imgbb.com/
21st Jun 2020, 6:53 AM
Felipe BF
+ 2
Thankyou
21st Jun 2020, 6:58 AM
Sameer Crestha
Sameer Crestha - avatar