Correct folder structure for sites

Posted by Francesca on Stack Overflow See other posts from Stack Overflow or by Francesca
Published on 2012-09-04T15:18:18Z Indexed on 2012/09/04 15:38 UTC
Read the original article Hit count: 171

Filed under:

I've just started tidying up the server for a particular site and am running into some trouble when moving files.

I originally had style.css in my main folder, and another folder called images, so paths in the .css went images/myimage.png

Now I have moved style.css into another folder called css.

So the image links in the CSS no longer work, as it's looking for the folder images from it's own CSS folder.

I changed the file path to /images/myimage.png as I thought this would make it climb up a level and then look for the images folder, but this doesn't seem to work.

I'm interested to see what solutions people have and also any suggestions on how people organise their folders for a particular site.

Thanks!

© Stack Overflow or respective owner

Related posts about html