Reply to Re: css stored where?

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация