Skip to content
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

Left-aligned Buttons on Gmail App in Android #4

Open
micahjon opened this issue Jan 21, 2015 · 2 comments
Open

Left-aligned Buttons on Gmail App in Android #4

micahjon opened this issue Jan 21, 2015 · 2 comments

Comments

@micahjon
Copy link

Just wanted to let you know that centered buttons show up left-aligned on the gmail app for android.

screenshot_2015-01-21-13-05-14

I fixed this by adding a .centered-button-container class for the containers of buttons that are supposed to be centered. The problem is that gmail is ignoring the width="100%" on the <table> and needs a style="width: 100% !important". This class gets inlined of course.

HTML Before:
`

`

HTML After:
`

`

CSS After:
.centered-button-container { width:100% !important; }

If you'd like, I can submit a pull request. And thanks for a super-reliable template.

@ghost
Copy link

ghost commented Jul 7, 2015

I have been unable to fix this myself and the suggested fix here did not fix the issue for me. I continue to see the button left-aligned in the Gmail app on Android. Any thoughts?

@ghost
Copy link

ghost commented Aug 12, 2015

Please ignore my Jul 7 comment. I tried this fix again today and it DOES work for me. I must have done something incorrectly during my last attempt. Thanks @pranksinatra!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant