Reply to Re: Tool to group STYLE tags together?

Your name:

Reply:


Posted by Toby Inkster on 11/07/06 17:49

John Dalberg wrote:

> I am using an application that dynamically creates style tags all over
> the place in the html file. I mean some inside the head section and some
> in the body section. I have no control over this.

Do you mean style *elements* or style *attributes*? Style *elements* look
something like this:

<style type="text/css">
...
</style>

whereas style attributes look like this:

style="..."

It really helps if you use the correct terminology, as the answers may be
different for each interpretation.

In the case of <style> elements, it should be relatively easy to
post-process the page (using e.g. regular expressions in PHP) to merge
pull out the CSS from several style blocks and concatenate them into one.

In the case of style attributes on other elements, things get a bit more
tricky. It could also be done with a bit of scripting, but would require
more work.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[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

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