-
Notifications
You must be signed in to change notification settings - Fork 20
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
Gmail and display:inline-block #80
Comments
Just had a quick look into this. Gmail on iOS adds This is what Gmail adds
|
Wow, nice! This works perfectly. (By adding |
I got it from the Litmus processed HTML view. Here's the full processed HTMl from your code above.
|
Ha, nice! I didn't know this worked for mobile apps as well. |
Sounds like a valuable addition to the gmail resets! I forget, is there a good resource out there with a current list of tested/trusted resets?
Could be a nice addition to this repo…
|
… commit 9ee7dc274) upstream commit found in 4.8.0 commit 9ee7dc2746b3dc4f1ea1a979cdd9c6807392ec34 Author: Jack Steele <[email protected]> Date: Thu Oct 1 14:45:02 2020 +0100 Adjust skeleton to add word-spacing: normal to body of html The motivation to do this is mentioned in upstream pull request 2049: Fix issue with stacking columns within mj-group in Gmail for IOS mjmlio/mjml#2049 > This PR resolves the bug in Gmail on IOS where the word-spacing: 1px is > added to the body causing the mj-group columns to stack. The issue is > outlined here hteumeuleu/email-bugs#80 and the suggested fix is provided > by Mark Robbins. > ... > Columns are stacking in IOS 14 on Gmail. The fix will ensure that the > columns remain inline.
@pbiolsi - I know this is quite old - but this repo has all the needed CSS resets/normalise attributes for email: https://github.com/JayOram/email-css-resets |
Since a week or so, I'm starting to see issues in Gmail when using
display:inline-block
to set columns side by side. It's as if the space between two elements would be forced there (even though I usefont-size:0
on a parent element to remove it.A solution I found is to use HTML comments between the two elements to eliminate the white space.
Here's what it looks like in my iPhone SE (first gen):
Here's the code with two examples, the first one breaking and the second one (with the comments fix) :
But I've found this to be very inconsistent. It doesn't happen on all my devices. And it doesn't happen on all accounts in Gmail. Can anyone else test the above code and share what your results are?
The text was updated successfully, but these errors were encountered: