+ 1
How to add a Background in css from my local disk?!
hi guys please tell me how can I add a image background using css from my local drive? background-image:url ("example.jpg") it doesnt work :(
8 odpowiedzi
+ 1
where is your css? in playground or in local storage?
0
In my PC (nete pad)
0
to make url("example.jpg") work, your css file and example.jpg must to be in same directory
0
can't be inline css?
0
if you have folders like "css" and "img" in your project folder - path to your image must be like "../img/example.jpg"
0
if it inline - your html file and image must be in same folder
0
Ok got it . thank u my friend ♡
0
no problem