+ 1

Set background image - CSS

I ever heard that if you want to define background image and image is in the same folder of your html file, you have to begin with './' and then file name. eg. background-image: url('./logo.png'); Is that true? Or its not neccesary?

23rd Nov 2016, 4:55 PM
Fendi Septiawan
Fendi Septiawan - avatar
3 Answers
+ 5
not necessary. if same path
23rd Nov 2016, 5:08 PM
bikash panda
bikash panda - avatar
+ 2
Ok. Thanks a lot. @bikash panda
24th Nov 2016, 2:46 PM
Fendi Septiawan
Fendi Septiawan - avatar
0
pleasure
24th Nov 2016, 2:52 PM
bikash panda
bikash panda - avatar