juice
juice copied to clipboard
Convert rem units to px values
I am using juice to inline CSS in e-mails. But if my CSS uses rem units (because I use the same CSS also on the website itself) then when such e-mail is displayed for example in Gmail, rem units correspond to Gmail root font size and not the root font size inside my HTML e-mail. So juice could see what the root font size is and recompute rem units to px values.
https://www.npmjs.com/package/rem-to-px may be helpful
+1 to the above - use a package. Changing your CSS for better email client support shouldn't be Juice's responsibility.