You are here: Re: css stored where? « HTML « IT news, forums, messages
Re: css stored where?

Posted by Jim S on 12/19/06 11:28

On 19 Dec 2006 01:34:14 -0800, Andy Dingley wrote:

> 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.

Are you saying that each page should have its own /images folder rather than
having all the images (photos in my case) in one folder?
--
Jim S
Tyneside UK
http://www.jimscott.co.uk

 

Navigation:

[Reply to this 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

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