Reputation: 624
i have a stupid question,
I want to load background image with the background-image: url(images/background.jpg);
function but css file location is css/main.css.
how to do that?
Thanks.
Upvotes: 0
Views: 31
Reputation: 64
background-image: url("../images/background");
../
puts you one folder back, if for some reason, you would need to go two, use ../../
Also make sure to include extension (jpg/png) of the background image.
Upvotes: 1