You are here: Re: cleaning up classes and ids in large site « All PHP « IT news, forums, messages
Re: cleaning up classes and ids in large site

Posted by dorayme on 02/16/07 03:09

In article
<1171594920.245572.319460@s48g2000cws.googlegroups.com>,
"windandwaves" <nfrancken@gmail.com> wrote:

> Hi Folk
>
> I am managing a rather large site. Over time, the css file has gone
> from a few lines to 15Kb of styles. I would really like to clean this
> up and simplify it. Do you know of any systems / applications (I use
> PHP for the site) that I can use to
>
> a. find all the IDs and classes used on the site.
> b. check if these classes and IDs are listed in the css
> c. find any classes and IDs listed in the css that are no longer used
> on the site

This is very easy technically. This is what I do: search for
instances of ids and classes in the html files by using Search
and Replace functions that come with any decent text editor. It
should of course have search over whole folders (that includses
all files in sub folders). If none are found, I search the css
files and delete those ids or classes or otherwise attend to the
matter. It really does not much matter if you conduct the search
over the whole website folder and some of the found references
are to css instances, you just see if there are references in
both.

If you are using php includes then of course, you will search the
includes folder as well.

Good luck.

--
dorayme

 

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

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