leemunroe / responsive-html-email-template

A free simple responsive HTML email template
http://leemunroe.github.io/responsive-html-email-template/email.html
MIT License
13.37k stars 4.41k forks source link

Content not centered on Mac OS Mail #74

Closed idiazroncero closed 6 years ago

idiazroncero commented 6 years ago

Hello! First of all, thanks for your amazing work. I am having some issues with centering on Mail on Mac (High Sierra, 10.13.4). I'm sending the HTML inlined version, copy & paste, and the content is not centered. I have checked the source and it's the same as the original:

captura de pantalla 2018-05-21 a las 12 55 49

Any ideas?

leemunroe commented 6 years ago

Thanks @idiazroncero. What are you using to send the HTML? I just checked Litmus and my own client and looks fine.

image

image

leemunroe commented 6 years ago

@idiazroncero Were you able to get this working? If so I'll close the issue.

idiazroncero commented 6 years ago

Nop, but I guess is something on my side. I'm using Drupal (and theoretically a template that doesn't alter the code) and Sparkpost... so yes, there is a lot of middleware, I have to take a look.

reense commented 6 years ago

Same thing is happening here.

leemunroe commented 6 years ago

I can't reproduce I'm afraid.

I tested it again and looks fine to me. Here is Litmus test.

pziewiec commented 6 years ago

The same problem if I use juice with removeStyleTags = true (default value).

leemunroe commented 6 years ago

@pziewiec Can you share your code so I can troubleshoot?

pziewiec commented 6 years ago

I checked twice - problem is with html fitler in ckeditor not juice. Running juice on html from repository - email looks good.

leemunroe commented 6 years ago

I see. Not familiar with ckeditor. Is this desktop editor or integrated into a web service or ESP? Do you know what ckeditor is stripping? I wonder if something similar is happening the other people above.

pziewiec commented 6 years ago

ckeditor has no fullPage=true, so strip tags: html, head, body email-after-ckeditor.html.zip

idiazroncero commented 6 years ago

@leemunroe Ckeditor is a wysiwyg text editor, one of the most popular, used on many CMSs including Drupal and it provides a huge degree of sanitization so yes, it seems like it could be the source of this issue.

leemunroe commented 6 years ago

Got it. Thanks for the follow up. Closing.