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
Post a Comment