IE table border bug - OK on Chrome and Safari












0















everyone,



I have designed a quick html doc that will be incorporated in Outlook (hence the need to have inline styles inside the HTML). Everything is looking fine on Chrome and on Safari, but IE11 is showing the below problem. The table border is messed up, like it has two colours inside it, instead of only one, like the good version on Chrome. Also, Firefox seems to be ignoring the table set for the colour and showing a beveled version of it... Does anyone have an idea about this? I'm pasting example image and my code below.



image depicting bug in IE against good version on Chrome






<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Xmas Card</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>

<body style="margin: 0; padding: 60px 300px 60px 300px; background-color:#d2d2d1">
<table>
<tr>
<div style="text-align:center; margin-bottom:20px">
<span style="font-family:sans-serif; font-size:10pt"><a href="#">If you have problems opening this message, read online here</a></span>
</div>
</tr>
</table>
<table border="8" rules="none" bordercolor="#8a7e70" cellpadding="0px" cellspacing="0" align="center" width="600px">
<tr style="background-color:#ffffff" align="center">
<td>
<img src="#" alt="corners top">
</td>
</tr>
<tr style="background-color:#ffffff" align="center">
<td>
<img src="#" alt="logo">
</td>
</tr>
<tr style="background-color:#ffffff" align="center">
<td>
<h1 style="font-size:24pt; font-family:sans-serif; color:#aa212f; text-align:center">Season's Greetings</h1>
</td>
</tr>
<tr style="background-color:#ffffff" align="center">
<td>
<img src="#" alt="Xmas branches">
</td>
</tr>
<tr style="background-color:#ffffff" align="center">
<td>
<a href="#"><img src="/#" alt="button"></a>
</td>
</tr>
<tr style="background-color:#ffffff" align="center">
<td>
<img src="#" alt="corners bottom">
</td>
</tr>
</table>
</body>

</html>





Thank you so much for your kindness.










share|improve this question



























    0















    everyone,



    I have designed a quick html doc that will be incorporated in Outlook (hence the need to have inline styles inside the HTML). Everything is looking fine on Chrome and on Safari, but IE11 is showing the below problem. The table border is messed up, like it has two colours inside it, instead of only one, like the good version on Chrome. Also, Firefox seems to be ignoring the table set for the colour and showing a beveled version of it... Does anyone have an idea about this? I'm pasting example image and my code below.



    image depicting bug in IE against good version on Chrome






    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Xmas Card</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    </head>

    <body style="margin: 0; padding: 60px 300px 60px 300px; background-color:#d2d2d1">
    <table>
    <tr>
    <div style="text-align:center; margin-bottom:20px">
    <span style="font-family:sans-serif; font-size:10pt"><a href="#">If you have problems opening this message, read online here</a></span>
    </div>
    </tr>
    </table>
    <table border="8" rules="none" bordercolor="#8a7e70" cellpadding="0px" cellspacing="0" align="center" width="600px">
    <tr style="background-color:#ffffff" align="center">
    <td>
    <img src="#" alt="corners top">
    </td>
    </tr>
    <tr style="background-color:#ffffff" align="center">
    <td>
    <img src="#" alt="logo">
    </td>
    </tr>
    <tr style="background-color:#ffffff" align="center">
    <td>
    <h1 style="font-size:24pt; font-family:sans-serif; color:#aa212f; text-align:center">Season's Greetings</h1>
    </td>
    </tr>
    <tr style="background-color:#ffffff" align="center">
    <td>
    <img src="#" alt="Xmas branches">
    </td>
    </tr>
    <tr style="background-color:#ffffff" align="center">
    <td>
    <a href="#"><img src="/#" alt="button"></a>
    </td>
    </tr>
    <tr style="background-color:#ffffff" align="center">
    <td>
    <img src="#" alt="corners bottom">
    </td>
    </tr>
    </table>
    </body>

    </html>





    Thank you so much for your kindness.










    share|improve this question

























      0












      0








      0








      everyone,



      I have designed a quick html doc that will be incorporated in Outlook (hence the need to have inline styles inside the HTML). Everything is looking fine on Chrome and on Safari, but IE11 is showing the below problem. The table border is messed up, like it has two colours inside it, instead of only one, like the good version on Chrome. Also, Firefox seems to be ignoring the table set for the colour and showing a beveled version of it... Does anyone have an idea about this? I'm pasting example image and my code below.



      image depicting bug in IE against good version on Chrome






      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>Xmas Card</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
      </head>

      <body style="margin: 0; padding: 60px 300px 60px 300px; background-color:#d2d2d1">
      <table>
      <tr>
      <div style="text-align:center; margin-bottom:20px">
      <span style="font-family:sans-serif; font-size:10pt"><a href="#">If you have problems opening this message, read online here</a></span>
      </div>
      </tr>
      </table>
      <table border="8" rules="none" bordercolor="#8a7e70" cellpadding="0px" cellspacing="0" align="center" width="600px">
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="corners top">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="logo">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <h1 style="font-size:24pt; font-family:sans-serif; color:#aa212f; text-align:center">Season's Greetings</h1>
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="Xmas branches">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <a href="#"><img src="/#" alt="button"></a>
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="corners bottom">
      </td>
      </tr>
      </table>
      </body>

      </html>





      Thank you so much for your kindness.










      share|improve this question














      everyone,



      I have designed a quick html doc that will be incorporated in Outlook (hence the need to have inline styles inside the HTML). Everything is looking fine on Chrome and on Safari, but IE11 is showing the below problem. The table border is messed up, like it has two colours inside it, instead of only one, like the good version on Chrome. Also, Firefox seems to be ignoring the table set for the colour and showing a beveled version of it... Does anyone have an idea about this? I'm pasting example image and my code below.



      image depicting bug in IE against good version on Chrome






      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>Xmas Card</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
      </head>

      <body style="margin: 0; padding: 60px 300px 60px 300px; background-color:#d2d2d1">
      <table>
      <tr>
      <div style="text-align:center; margin-bottom:20px">
      <span style="font-family:sans-serif; font-size:10pt"><a href="#">If you have problems opening this message, read online here</a></span>
      </div>
      </tr>
      </table>
      <table border="8" rules="none" bordercolor="#8a7e70" cellpadding="0px" cellspacing="0" align="center" width="600px">
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="corners top">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="logo">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <h1 style="font-size:24pt; font-family:sans-serif; color:#aa212f; text-align:center">Season's Greetings</h1>
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="Xmas branches">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <a href="#"><img src="/#" alt="button"></a>
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="corners bottom">
      </td>
      </tr>
      </table>
      </body>

      </html>





      Thank you so much for your kindness.






      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>Xmas Card</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
      </head>

      <body style="margin: 0; padding: 60px 300px 60px 300px; background-color:#d2d2d1">
      <table>
      <tr>
      <div style="text-align:center; margin-bottom:20px">
      <span style="font-family:sans-serif; font-size:10pt"><a href="#">If you have problems opening this message, read online here</a></span>
      </div>
      </tr>
      </table>
      <table border="8" rules="none" bordercolor="#8a7e70" cellpadding="0px" cellspacing="0" align="center" width="600px">
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="corners top">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="logo">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <h1 style="font-size:24pt; font-family:sans-serif; color:#aa212f; text-align:center">Season's Greetings</h1>
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="Xmas branches">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <a href="#"><img src="/#" alt="button"></a>
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="corners bottom">
      </td>
      </tr>
      </table>
      </body>

      </html>





      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>Xmas Card</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
      </head>

      <body style="margin: 0; padding: 60px 300px 60px 300px; background-color:#d2d2d1">
      <table>
      <tr>
      <div style="text-align:center; margin-bottom:20px">
      <span style="font-family:sans-serif; font-size:10pt"><a href="#">If you have problems opening this message, read online here</a></span>
      </div>
      </tr>
      </table>
      <table border="8" rules="none" bordercolor="#8a7e70" cellpadding="0px" cellspacing="0" align="center" width="600px">
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="corners top">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="logo">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <h1 style="font-size:24pt; font-family:sans-serif; color:#aa212f; text-align:center">Season's Greetings</h1>
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="Xmas branches">
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <a href="#"><img src="/#" alt="button"></a>
      </td>
      </tr>
      <tr style="background-color:#ffffff" align="center">
      <td>
      <img src="#" alt="corners bottom">
      </td>
      </tr>
      </table>
      </body>

      </html>






      html internet-explorer html-table






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '18 at 15:22









      Hugo Picado de AlmeidaHugo Picado de Almeida

      31




      31
























          1 Answer
          1






          active

          oldest

          votes


















          0














          When you want to set the table's border attribute, you should keep in mind that the border-style is required.
          The definition and usage of CSS border you could refer to the following W3C document:https://www.w3schools.com/cssref/pr_border.asp



          I suggest that you could set the border-color, border-style and border-width separately like:



          <table style="border-color: #8a7e70; border-style: solid; border-width:8px;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          Or you could write three attributes together:



          <table style="border:8px solid #8a7e70;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          the running result in Chrome and IE






          share|improve this answer
























          • Thank you, @Jenifer! That worked perfectly! ;)

            – Hugo Picado de Almeida
            Nov 22 '18 at 11:46











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53415240%2fie-table-border-bug-ok-on-chrome-and-safari%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          When you want to set the table's border attribute, you should keep in mind that the border-style is required.
          The definition and usage of CSS border you could refer to the following W3C document:https://www.w3schools.com/cssref/pr_border.asp



          I suggest that you could set the border-color, border-style and border-width separately like:



          <table style="border-color: #8a7e70; border-style: solid; border-width:8px;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          Or you could write three attributes together:



          <table style="border:8px solid #8a7e70;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          the running result in Chrome and IE






          share|improve this answer
























          • Thank you, @Jenifer! That worked perfectly! ;)

            – Hugo Picado de Almeida
            Nov 22 '18 at 11:46
















          0














          When you want to set the table's border attribute, you should keep in mind that the border-style is required.
          The definition and usage of CSS border you could refer to the following W3C document:https://www.w3schools.com/cssref/pr_border.asp



          I suggest that you could set the border-color, border-style and border-width separately like:



          <table style="border-color: #8a7e70; border-style: solid; border-width:8px;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          Or you could write three attributes together:



          <table style="border:8px solid #8a7e70;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          the running result in Chrome and IE






          share|improve this answer
























          • Thank you, @Jenifer! That worked perfectly! ;)

            – Hugo Picado de Almeida
            Nov 22 '18 at 11:46














          0












          0








          0







          When you want to set the table's border attribute, you should keep in mind that the border-style is required.
          The definition and usage of CSS border you could refer to the following W3C document:https://www.w3schools.com/cssref/pr_border.asp



          I suggest that you could set the border-color, border-style and border-width separately like:



          <table style="border-color: #8a7e70; border-style: solid; border-width:8px;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          Or you could write three attributes together:



          <table style="border:8px solid #8a7e70;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          the running result in Chrome and IE






          share|improve this answer













          When you want to set the table's border attribute, you should keep in mind that the border-style is required.
          The definition and usage of CSS border you could refer to the following W3C document:https://www.w3schools.com/cssref/pr_border.asp



          I suggest that you could set the border-color, border-style and border-width separately like:



          <table style="border-color: #8a7e70; border-style: solid; border-width:8px;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          Or you could write three attributes together:



          <table style="border:8px solid #8a7e70;" rules="none" cellpadding="0" cellspacing="0" align="center" width="600">...</table>


          the running result in Chrome and IE







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 '18 at 7:58









          Jenifer JiangJenifer Jiang

          1414




          1414













          • Thank you, @Jenifer! That worked perfectly! ;)

            – Hugo Picado de Almeida
            Nov 22 '18 at 11:46



















          • Thank you, @Jenifer! That worked perfectly! ;)

            – Hugo Picado de Almeida
            Nov 22 '18 at 11:46

















          Thank you, @Jenifer! That worked perfectly! ;)

          – Hugo Picado de Almeida
          Nov 22 '18 at 11:46





          Thank you, @Jenifer! That worked perfectly! ;)

          – Hugo Picado de Almeida
          Nov 22 '18 at 11:46




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53415240%2fie-table-border-bug-ok-on-chrome-and-safari%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          'app-layout' is not a known element: how to share Component with different Modules

          android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

          WPF add header to Image with URL pettitions [duplicate]