Ask Your Question
1

How to make CSS consistent between the site and emails?

asked Mar 07 '11

Evgeny gravatar image Evgeny flag of Chile
6665 31 49 95
http://askbot.org/

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.

Be the first one to answer this question!

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Mar 07 '11

Seen: 43 times

Last updated: Mar 07 '11