Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: not2easy
I must admit being a bit confused by your question. Is the problem in choosing between absolute and relative paths different in CSS? Here [webmasterworld.com] is a discussion about the same problem in HTML.
In all my css files, I have been using an absolute path to images based on the root of the site.
Instead, can I use a relative path to images relative to the location of my.css?
Do any browsers have trouble with a relative path?
I hope that clarifies the question.
Absolute path pros: never worry about where you're currently at ... images are always at /images (for example)
Absolute path cons: impossible to "move" the structure into a subfolder etc, as the image paths now have changed
Relative path pros: move to sub folder, move up, anywhere you want ... paths are relative, so it won't matter
Relative path cons: let's see ... are the images now in ../images, or ../../images?