0
Is there a way to stop Constant Contact from removing the doctype tag?
I'm coding a custom email and the constant contact editor is stripping out my doctype tag, so my tables won't stack on mobile. Is there a way to stop this?
I'm coding a custom email and the constant contact editor is stripping out my doctype tag, so my tables won't stack on mobile. Is there a way to stop this?
I know nothing about Constant Contact. But maybe you could try another doctype ? (Like HTML4, or HTML5, or XHTML1) It seems crazy to me that an ESP would do that. This is terrible practice.
I found this page that says their html editor removes anything before the <html> tag including the doctype. I haven't been able to find a way around this, if there even is one. https://support2.constantcontact.com/articles/SupportFAQ/1124?l=en_US
So I guess there's no other way. If your problem is specifically about table stacking (using
display:block
on<td>
s, I presume), you can try using<th>
instead of<td>
tags. This works, even without doctype. (You can read more about this here.)