Reply to Re: Wnat to embed full HTML page in email, but migrating style from css files to element style attributes

Your name:

Reply:


Posted by Rik on 12/14/06 07:11

Henrik wrote:
> My web pages of course use css files, but Webmail services require
> style to be in element style attributes.
>
> How do I convert a standard HTML page to HTML suitable for delivery to
> webmail services?
>
> Perhaps another way to ask the question is:
>
> How to I walk the DOM and for every element, for every style, set the
> element's style attribute to the values that are looked up in the css
> file in normal rendering.
>
> Anyone know of any tools, or examples to do this?

I'm not aware of any tools you describe, but undoubtly they're out there in
varying degrees.
Normally though, including the css sheet like <style type="text/css"><?php
include 'style.css'; ?></style> in the <head> is enough, and it will keep
your (evil html...:P) emails somewhat shorter.
--
Rik Wasmus

[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

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