You are here: Re: Wnat to embed full HTML page in email, but migrating style from css files to element style attributes « PHP Programming Language « IT news, forums, messages
Re: Wnat to embed full HTML page in email, but migrating style from css files to element style attributes

Posted by bill on 12/14/06 11:24

Rik wrote:
> 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.

There was recently an article on webreference that said that only
inline styles are reliable in html mail:
<http://www.webreference.com/programming/css_html/>

bill

 

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

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