ソースを参照

fixe email centering

Bachir Soussi Chiadmi 7 年 前
コミット
598f3e8292

+ 4 - 4
sites/all/themes/gui/materiobasetheme/templates/simplenews-newsletter-body.tpl.php

@@ -33,13 +33,13 @@ $node_url = url('node/'.$build['#node']->nid, array('absolute' => TRUE));
 <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
   <tbody>
     <tr>
-      <td style="padding: 37px 0; background-color: #eeeeee;" align="center" bgcolor="#eeeeee">
+      <td style="padding: 37px 0; background-color: #eeeeee; text-align:center;" align="center" bgcolor="#eeeeee">
         <!-- #nl_container -->
         <p style="text-align:center; margin:5px 0;"><a href="<?php print $node_url; ?>" style="font-size:9px; color:#444444;">Voir la version en ligne / View this email on the web</a>
-        <table bgcolor="#ffffff" style="margin: 0; border: 1px solid #dddddd; color: #444444; font-family: arial; font-size: 12px; border-color: #dddddd; background-color: #ffffff;" width="600" border="0" cellspacing="0" cellpadding="0">
+        <table bgcolor="#ffffff" style="margin: 0 auto; border: 1px solid #dddddd; color: #444444; font-family: arial; font-size: 12px; border-color: #dddddd; background-color: #ffffff; float:none; position:relative;" width="600" border="0" cellspacing="0" cellpadding="0">
           <tbody>
             <tr>
-              <td>
+              <td style="text-align:left;">
                 <!-- node content -->
                 <?php print render($build); ?>
                 <table style="margin: 0 0 0 10px; border-collapse: collapse; color: #444444; font-family: arial; font-size: 12px; border-color: #dddddd; background-color: #ffffff;">
@@ -99,4 +99,4 @@ $node_url = url('node/'.$build['#node']->nid, array('absolute' => TRUE));
                       </td>
                     </tr>
                   </tbody>
-                </table>
+                </table>