Bonjour,
J'ai créé une newsletter sous MailChimp. Sur une ligne de mon tableau j'ai une image de 350 x 350px dans la 1ère colonne et un bloc de texte de 350px de haut dans la 2ème colonne:
voir ligne 1 et 5
Code HTML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 <td id="mon_img" width="50%" height="350" style="height:350px;overflow:hidden;"> <!-- ********* ICI ******** --> <a href="monlien"> <img mc:edit="retenir_image_href" src="monimageurl" width="350" height="350" alt=""></a> </td> <td id="mon_text" width="50%" height="350" style="background-color:#41738c;margin:0;padding:0;"> <!-- ********* ICI ******** --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" align="center" style="margin:0;padding-top:0;padding-bottom:0;padding-left:20px;padding-right:20px;background-color:#41738c;color:#FFFFFF;"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td height="50" align="center" style="margin:0;padding:0;"> <img src="monimageUrl"> </td> </tr> <tr> <td align="center" style="margin:0;padding-top:50px;color:#FFF;"> <h1 mc:edit="mon_title" style="font-size:18px;line-height:20px;font-weight:bold;margin:0;padding:0;">Bla bla bla</h1> <span mc:edit="mon_texte">Bla bla bla</span> </td> </tr> </table> </td> <td> </td> </tr> </table> </td>
Cela fonctionne très bien sous Outlook ou si j'ouvre mon code dans un navigateur mais quand je me transfère le mail sous Gmail alors la hauteur de ces deux colonnes passent à 361px de haut laissant du vide sous mon image
Une idée pour résoudre ce soucis?
Merci.
Partager