+ 1

how write specifically syntax of path of image on background-image property, while the image is into a different folder?

background-image:url() ??

18th Mar 2017, 2:55 PM
Lisandro Covanti
Lisandro Covanti - avatar
2 Respuestas
+ 6
If the css declarations are inlined (embeded in html file) paths are relative to this file directory (folder)... if the declarations are linked in an external css file, paths are relative to the css file directory ;)
18th Mar 2017, 5:12 PM
visph
visph - avatar
+ 1
try to use two dots to go in parent folder url('../img/1.jpg')
18th Mar 2017, 3:00 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar