-
Notifications
You must be signed in to change notification settings - Fork 954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Columns breaks on some Google Apps account #24
Comments
Hey, But i'm currently using MJML to design my newsletter and did many tests from scratch, and i still have the bug :( |
Can you provide me the full mjml markup you're using ? Did you refresh the |
I've just uddated to
Please note that each time i need to delete the Here is the results : |
Sounds like you said something very interesting : Mailchimp may alter the html. Can't see anything else :( Do you want me to send you a test case, so you could investigate the code ? |
Would like to ! Can you send this html https://gist.github.com/iRyusa/5d8b669fae9c6bb4ba94 to me at maxime@derniercri.io ? |
Done ! |
Please note that line 22 to 24 are deleted before sending (see #22) |
Oh, well asked ! So, just tested :
Still breaking. I'm investigating right now to see what could break the layout on my environment… |
Mhh, can you open only the mail in a new tab and give me the whole html ? I would like to check the html on your side |
Ok, it's here : |
I'm getting out of ideas, looks like in your environment media queries aren't applied at all. Weird thing is, all your columns have their |
Out of ideas too. Next step could be to know if some users are facing the same problem. |
Adding a cannot reproduce label atm, when we have a step te reproduce or identified what can cause that issue I'll take another look at it |
Meh, don't know why media queries aren't applied @joaopvilla I sent you an email from litmus, do you have the same problem ? |
@joaopvilla or @philippebarbosa can you provide the original mail with this : Thanks ! |
Link to the gist sent by mail ! |
Well from @hteumeuleu 's observations, It might be an issue with google apps account that threat some css differently. He's working on a fix, we keep you informed as soon as it's available |
Ok, great. Let me know. |
@philippebarbosa @joaopvilla can you confirm that you're both using a google apps free account ? |
Not me, i'm using google apps for work. |
@hteumeuleu I have read this entire thread and I can tell that I understand in the app gmail mobile breaks, let me know if have any idea how to fix it, I'm testing email responsive and works great on mobile devices and exept desk in the app gmail |
Hi, |
:/ Thank you |
@iRyusa is there any hope on this issue beyond petitioning gmail? |
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.
|
@rickyngk Could you explain a bit more your answer. I have no clue what technique you are using or even where nor how to put it in my code. Please help. This layout breaking up in gmail is really a big deal as all my templates stopped working and now display the mobile version in desktop gmail. |
If another case is helpful, I'm experiencing this with the following:
|
Hi, I was having a similar problem with gmail not respecting my MJML column width. I then went to the HMTL code and noticed in the column's div tag that it tries to set the width at 100% in the styling. Once I changed this to the actual width of my MJML column it seemed to fix the problem at least with gmail. |
Well this is the intended behaviour of a column, MJML has a mobile first approach, so column size are applied through media queries. How are you sending your emails ? And do you use a regular Gmail account or a non Gmail address on it ? |
Hi, (disclaimer - I am a designer and not an engineer so I am still learning how this works ;) ) I understand what you're saying. The problem I am having was in the beginning my email code was not working on gmail, but on my macbook's mail app, so in the HTML, I changed the styling in the tag where my mj-column was located. Because the problem was gmail was rendering my email code as if the 50% column width I was setting was 100%. By removing that "width 100%" in the
|
Hi @JaimeHolland88, very sorry but we're not sure to understand your issue! If it's that on Gmail desktop, the mobile layout is shown (columns stacking instead of being side by side), it's most likely that the Gmail version you're using doesn't support responsive styles (see this Litmus post for details). If this is not the issue, please open another issue with as much information as possible, following this template. Cheers! |
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
. But in Gmail, other problem ---> Name class has been renamed :
Regards Atch |
Hi, Résults :
|
Really weird @Comicspidey do you have the same results when sending it through putsmail ? |
@iRyusa No problem with putsmail. I notice that when I use MailChimp, Google blocks all images by default. At this point, the arrangement looks good. But when I unblock the images, the column layout does not work. When I use MailJet, Google doesn't block images. edit: When I return to the emailing after opening it and unlocking the images, the layout works. It is only at the initial loading of the images that I have the problem of layout. |
Hey everybody, i read all the topic, and still didnt find an easy solution for this issue.. i thought mjml was the right solution for responsive template, but looks like it doesnt works that well.. EDIT by @ngarnier: I removed your code because the thread was then unreadable due to the lenght of your comment. Here's the template: https://mjml.io/try-it-live/HkvIq0Oae I used my own interface to send the emailing (gwebmailing.fr), which i guess doesnt modified the code (the preview is well interpreted in my solution) , it looks fine in thunderbird and the reponsive is working, but gmail and outlook online , it doesnt at all.. i know emailing is quite tricky but i'm quite disappointed by the mjml solution, since if it doesnt work for gmail and outlook, it doesn't work for 50% of the targets.. Any help would be appreciated |
@tonythecodeur, the responsive is looking fine in Gmail, have a look at the preview in Litmus: https://litmus.com/checklist/emails/public/9242657#chromegmailnew. The issue must be with either your email sending platform or the version of Gmail you're using (for this, check https://litmus.com/blog/gmail-to-support-responsive-email-design). If it's the version of Gmail you're using, we can't do anything as responsive styles aren't supported (whether you're using MJML, HTML or any other solution). About Outlook, the issue is happening only on Outlook.com, all others Outlook are fine, and as explained before there's no better alternative. |
Okay so I came across this same issue, and it's because the columns are relying on the media query within the header, if you export the HTML you will see '.mj-column-per-50 { width:50%!important; }, etc'. As mentioned above the head tags are removed so the media queries and styles won't be loaded for Outlook and Gmail - which causes the columns to break as it relies on the media queries to adjust the width. My current solution is to avoid using columns, and just use tables otherwise you need to manually remove the width: 100% which just messes it up for mobile view. I was expecting the columns to work robustly but doesn't seem to meet my expectations. This is a great idea, but please fix this! |
hi @chaz1993, this is not totally accurate, especially as an MJML template is responsive on Gmail. If you see a mobile layout in Gmail, the issue is elsewhere: you can have a look at this comment to understand all the context of MJML, what happens in Gmail and Outlook.com, and what can be the origin of the issue in Gmail: #717 (comment). Additional resources:
|
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. |
Oh! Thanks for sharing that feedback @pbsmultimedia! 👍 |
Mailchimp is altering the HTML so there not so much we can do here. There's a way to upload the template without Mailchimp altering it but I don't remember how it works. |
Thanks @iRyusa btw Chrome reinstal didn't work, the issue continues. |
Chrome display it fine, send it through a simple service like putsmail.com you will see that your template should render just fine. Can you explain a bit your workflow so we can identify what can cause your issue |
(with Chrome 48.0.2564.97 (64-bit), on Mac OsX El Capitan)
As seen on your site template :
Does not render well in gmail :
Work in that case (small texts in columns) :
but not with more text :
The text was updated successfully, but these errors were encountered: