css - Finding the right path of an image -


i've web site on www.open-guide.com , i'm trying put background-image each list item of general information form (why choose us?), can't seem find right path (either relative or absolute) images, i've in folder (tour_icons) in desktop.

i tried:

li {      background-image: url(../tour_icons/imagename.jpg); } 

but not finding it. doing wrong?

you need copy "tour_icons" folder hosted application path root, otherwise wont find correct file path. use / prefix start path consider root of application , define path asa string format.

background-image: url('/tour_icons/imagename.jpg'); 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -