What's the best way to center your HTML email content in the browser window (or email client preview pane)?

前端 未结 7 2152
悲&欢浪女
悲&欢浪女 2020-12-07 14:15

I normally use CSS rules for margin:0 auto along with a 960 container for my standard browser based content, but I\'m new to HTML email creation and I\'ve got

7条回答
  •  余生分开走
    2020-12-07 15:03

    I was struggling with Outlook and Office365. Surprisingly the thing that seemed to work was:

    I only listed some of the key things that resolved my Microsoft email issues.

    Might I add that building an email that looks nice on all emails is a pain. This website was super nice for testing: https://putsmail.com/

    It allows you to list all the emails you'd like to send your test email to. You can paste your code right into the window, edit, send, and resend. It helped me a ton.

提交回复
热议问题