Is there an equivalent of CSS max-width that works in HTML emails?

后端 未结 5 1268
梦如初夏
梦如初夏 2020-12-07 08:12

I\'m trying to create an HTML email that will display properly in all widely used email clients. I\'m wrapping the whole email in a table, and I\'d like it to have a width

5条回答
  •  没有蜡笔的小新
    2020-12-07 08:33

    There is a trick you can do for Outlook 2007 using conditional html comments.
    The code below will make sure that Outlook table is 800px wide, its not max-width but it works better than letting the table span across the entire window.

    
    
    
    [Your Content Goes Here]

    提交回复
    热议问题