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

前端 未结 7 2134
悲&欢浪女
悲&欢浪女 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 14:57

    In some cases margin="0 auto" won't cut the mustard when center aligning a html email in Outlook 2007, 2010, 2013.

    Try the following:

    Wrap your content in another table with style="table-layout: fixed;" and align=“center”.

    
    

提交回复
热议问题