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

前端 未结 7 2135
悲&欢浪女
悲&欢浪女 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

    CSS in emails is a pain. You'll probably need tables unfortunately, because CSS is not greatly supported in all email clients.

    That said, use an HTML Transitional DOCTYPE, not XHTML, and use

    .

提交回复
热议问题