|
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]
|