Absolute positioning in gmail emails

前端 未结 4 1831
耶瑟儿~
耶瑟儿~ 2020-12-09 01:09

I have a client who wants to send gift certificates to people who sign up on their site. They want it all designed out, so I can\'t just send a text email. I\'m trying to po

4条回答
  •  温柔的废话
    2020-12-09 02:11

    I would suggest doing the whole thing as a table (div support is not 100% reliable in email clients). Use border properties to give the table the green border. Insert the image of the logo/banner in the first row of the table (merged three columns). Use the next 3 rows for the To, From and Amount (with the values in the merged second and third columns). And use the last column of the last row for the cupon code.

    If you really want the double border then you can either wrap the table in a div or for maximum compatibility, wrap the table in a 1 column, 1 row table.

    Yes it's ugly but email clients have extremely buggy and/or old implementations of HTML so this is not the time or place to be squirmish about ugly, non-web2.0-looking code.

    See the link posted by alex for more info.

提交回复
热议问题