milkshakesoftware/PreMailer.Net

Inherit order for inline CCS definitions versus imported style sheets

johnbatters opened this issue · 0 comments

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