vchris Posted October 27, 2006 Share Posted October 27, 2006 I'm working on a project right now in CF. I have the main folder which everyone has access to and I have the admin folder that only logged in users can access. The problem is the path for all the images in the css stylesheet. What is the solution to this? Duplicate the stylesheet and change the paths? Link to comment Share on other sites More sharing options...
aspnetguy Posted October 27, 2006 Share Posted October 27, 2006 using a path like this /images/myimage.gif should work for both.starting hte path with / indicates to start looking at the site root. Link to comment Share on other sites More sharing options...
vchris Posted October 27, 2006 Author Share Posted October 27, 2006 Thought about that but the Dev site has a different path than the live site... Maybe I could do a search and replace once we transfer all the files to the live site so the paths are correct? Link to comment Share on other sites More sharing options...
aspnetguy Posted October 27, 2006 Share Posted October 27, 2006 are the 2 sites on the same domainwww.mydomain.com/ andwww.mydomain.com/devsite????if that is the case you could place all the needed images and other stuff in the folders of the live site and still use what I suggested. Link to comment Share on other sites More sharing options...
vchris Posted October 27, 2006 Author Share Posted October 27, 2006 This is a governmental site so it's always more complicated :)They aren't on the same domain. One is internal (where all the dev sites are) and the other is live. Link to comment Share on other sites More sharing options...
boen_robot Posted October 27, 2006 Share Posted October 27, 2006 I've had a similar problem too.Simply use a backsteped relative URL, for example../images/image.gifwill select the file image.gif that is located in the folder images that is one level above the current folder. Link to comment Share on other sites More sharing options...
shiftJIS Posted October 29, 2006 Share Posted October 29, 2006 I think the point is to be lazy and only have one CSS file and one folder of images. The only thing I can think to do is to have absolute paths. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now