I am trying to use image, stored in project directory (projectname/pictures/display_pic.jpg), through css background property -


it shows "cannot resolve file 'display_pic.jpg'". whats exact way use image stored in 'pictures' directory?? trying line of code below:

background: url('../../pictures/display_pic.jpg'); 

if using google chrome, go developer view, inspect element setting background, , in styles element, hover on "background: url()". show generated path. can tell if using many "../" or got file path totally wrong. other browsers should have similar feature.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -