Gmail is ignoring “display:none”

后端 未结 12 2139
旧巷少年郎
旧巷少年郎 2020-12-08 02:14

I have a query that Gmail is ignoring display:none.

What to do? In email HTML for hiding a row or div.

12条回答
  •  情书的邮戳
    2020-12-08 02:31

    In order to hide an element in an HTML email and have it work in Gmail you need to zero it out and adjust the sizing in your CSS (which Gmail will ignore).

    Like so:

    
    
    

    Additionally, the added conditional comment covers you for Outlook 07.

提交回复
热议问题