To format email reliably it turns out that style must be inlined, while the site uses static css file.
How to avoid duplication of css for email and the site?
So far two methods seem possible - (1) store some css in the database - "live settings" and print it to HTML head; (2) - have a way to parse out certain css rules from the main style sheet on startup - for the use in the emails.
Do you know of a good css parser that allows extracting rules matching some selector? Thanks.
Asked: Mar 07 '11
Seen: 43 times
Last updated: Mar 07 '11
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.