Search code examples
htmlcssoutlookhtml-email

HTML Mail Outlook - fix table width so that it is not broken when viewed on different screens


I have a python script that generates an HTML email body and send it out to users. the Email has a table of data being generated and the table is best viewed at 600px. I have some users who mainly watch the emails on mobile and becuase of which the table shrinks and the format breaks. Is there a way to keep the table width fixed to 600 and the user viewing on mobile has to scroll it to the right to view the full content, without shrinking the / sizes.


Solution

  • Not sure how well this will work for you. But it's where I would start.

    <body style="overflow-x: scroll;"> 
      <table style="width: 600px;" width="600">
        <tr>
          <td nowrap>Things and stuff that is over 600px</td>
        </tr>
       </table>
    </body>