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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -