|
Posted by Andy Dingley on 12/19/06 09:34
Jim S wrote:
> Where is it conventional to store css files?
CSS is (generally) a site-wide shared feature, so store it somewhere
that's accessible with an equal path from a page anywhere on the site.
"/", "/styles/" or "/css/" all work fine. Just make sure you begin the
references to it with a "/" so that they're absolute.
Photos, in contrast, are usually bound to a particular page. So don't
have a "/photos/" directory, dumpe everything into it and have to worry
about a rats-nest of paths and refereneces from other pages. If you
have a few images used for "page furniture" (borders, rules etc.) then
_those_ can go in a site-wide directory called "/images/" etc., just
like the CSS
As always, keep the root directory clear. It's always easier to keep it
(or any similar directory) clear from the beginning than to fill it to
the unwieldy level, then have to try and move things out later.
Navigation:
[Reply to this message]
|