html - set background css image in phpstorm - "cannot resolve file" -


i have image i'd set background in laravel 3 project - background-image: url("public/img/find-a-table.png");

but it's saying "cannot resolve find-a-table.png" in phpstorm though have image file added directory.

do need change have find image in directory? in other typical web app, quite trivial don't know if i'm missing something.


this site shows don't need quotes around path? i've tried doesn't fix it. use:

background: url(images/bg.jpg) no-repeat center center fixed; without quotes

phpstorm not tell you, browser not see given file. tells phpstorm not see file.

you have tell phpstorm relative path(es) start(s).

to so, open project file structure (cmd + 1 on mac), right click on (public accessible) root directory (public), mark directory > , mark sources root. after couple of seconds error message should disappear.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -