Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit order for inline CCS definitions versus imported style sheets #170

Open
johnbatters opened this issue Mar 26, 2019 · 0 comments
Open

Comments

@johnbatters
Copy link

Hi there, I have a stylesheet import followed by some inline CSS definitions. On a page the inline definitions override the imported style sheet (as they come after), but when run through the pre-mailer the first imported stylesheet gets priority. The class definitions are identical so it should be the later definition that gets priority. I'm solving the problem by extracting the stylesheets from the HTML before running premailer, then running it again for the imported style sheets. Not an ideal solution but works. Any more elegant solutions or am I doing something wrong?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant