leemunroe/responsive-html-email-template

Email and email inlined don't match

Closed this issue · 3 comments

I am using a php library to inline the css from the html and I was comparing result.

I spotted that the inlined file in the repository doesn't keep the same structure.

Just look at the

This is preheader text. Some clients will show this text as a preview.

Just want to point it out.

Not fully understanding. Can you share a screenshot of what you're seeing vs expected behavior?

This is the inlined line for preheader

<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>

And this one for the "regular" template:

<span class="preheader">This is preheader text. Some clients will show this text as a preview.</span>

As you can see the regular template the preheader is just after the
And in the inlined it have moved. So the dom structure is not kept in the "css inline" processor.

Ah you're right. Someone moved it due to an issue with a client.
4e6e711
I think we can safely move the inlined version too.