|
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
[Back to original message]
|