mjml: Columns breaks on some Google Apps account
(with Chrome 48.0.2564.97 (64-bit), on Mac OsX El Capitan)
As seen on your site template :
<!-- Side image -->
<mj-section background-color="white">
<mj-column>
<mj-image width="200" src="https://designspell.files.wordpress.com/2012/01/sciolino-paris-bw.jpg"></mj-image>
</mj-column>
<mj-column>
<mj-text font-style="italic"
font-size="20"
font-family="Helvetica Neue"
color="#626262">
Find amazing places
</mj-text>
<mj-text color="#525252">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rutrum enim eget magna efficitur, eu semper augue semper. Aliquam erat volutpat. Cras id dui lectus. Vestibulum sed finibus lectus.</mj-text>
</mj-column>
</mj-section>
Does not render well in gmail :
Work in that case (small texts in columns) :
<mj-section>
<mj-column>
<mj-text align="center">
foo
</mj-text>
</mj-column>
<mj-column>
<mj-text align="center">
bar
</mj-text>
</mj-column>
</mj-section>
but not with more text :
<mj-section>
<mj-column>
<mj-text align="center">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</mj-text>
</mj-column>
<mj-column>
<mj-text align="center">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</mj-text>
</mj-column>
</mj-section>
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 58 (23 by maintainers)
I had the same issue on gmail for work (did not happen on the personal/free version), after choosing “display images” the layout was breaking, columns became rows. After some research, found out that some newsletters displayed images by default, the difference was that those images are served on a httpS connection, while those that are blocked, are on a normal http connection. Serving the images on a httpS connection fixed the issue to me!
Hi,
I have same issue with gmail (Thunderbird , yahoo is ok)
First time, Gmail and thunderbid add . before style
I move the media in general style.
All it’s OK in Thunderbird and Gmail /**** Media Query ****/
. But in Gmail, other problem —> Name class has been renamed :
<div class="m_-3012835233884925647mj-column-per-100 m_-3012835233884925647outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%">Regards
Atch
AFISK, Google app removes all script tag. So the key point is how columns being performed without script tag. I think that now we treat it as single column.
This is my custom module that displays 2 cols. It’s not optimised yet.
Meh, don’t know why media queries aren’t applied
@joaopvilla I sent you an email from litmus, do you have the same problem ?