My directory structure is like this:
I have a css file in /css folder which needs some images which are in the /images folder respectively.
In /admin folder I am linking that css file. But its not able to get the required images from the /images folder which is outside.
I need to use that css file both in / and /admin.
Now i can't go uploading the images in each folder that I use the css file in.
How do I go about it ? So no matter from where I call the css file, it simply gets the images from /images folder ?
Hi Tapan. Yes, this is quite straight forward, and you only need the images in one place. The important thing is to get the path right from your CSS file to the images folder. You can do it in two ways, either:
I prefer the second method (with the slash at the start), but either is OK.
The first one meand: "go up one folder, find the images folder there, and find the image.gif file inside that". The second one says: "go to the site's root folder, find the images folder inside that, and find the image.gif file in that".
This topic is now closed. New replies are no longer allowed.