Replacing deprecated HTML "center" element.
[squirrelmail.git] / src / image.php
index 1158ca41b839912d22d10944042428dda9c53dc8..f8b956fb282abf84607c90eaba01c06482a0c1c6 100644 (file)
@@ -40,7 +40,7 @@ echo '<br />' .
     '<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">' .
     "\n" .
     '<tr><td bgcolor="' . $color[0] . '">' .
-    '<b><center>' .
+    '<div style="text-align: center;"><b>' .
     _("Viewing an image attachment") . " - ";
 
 $msg_url = 'read_body.php?' . $QUERY_STRING;
@@ -53,7 +53,7 @@ $DownloadLink = '../src/download.php?passed_id=' . $passed_id .
                '&amp;ent_id=' . urlencode($ent_id) . '&amp;absolute_dl=true';
 
 ?>
-</b></td></tr>
+</b></div></td></tr>
 <tr><td align="center">
 <a href="<?php echo $DownloadLink; ?>"><?php echo _("Download this as a file"); ?></a>
 <br />&nbsp;</td></tr></table>