Reputation: 157
I get a console error when I try to set a background image using CSS.
My CSS code is:
body {
background-image: url("background.png");
background-repeat: no-repeat;}
The error
GET http://localhost/myWeb/css/background.png 403 (Forbidden).
The CSS file and the image are in the same location.
Upvotes: 0
Views: 142
Reputation: 1455
you should check file permissions for image background.png ..
Upvotes: 1