HTML Code for Background Color for Gmail

Options
I have looked everywhere and tried every code I know but I can't seem to find a code that will allow Gmail to show my full background color. I can make a background color inside of tables that shows up but want it to cover my whole email in Gmail. Please help. Thanks.
Tagged:

Comments

  • Hi Garrett,


    You need to have a table inside a table.


    <table class="container" width="100%" bgcolor="#EFF9F8" border="0" cellspacing="0" cellpadding="0">

            

                <!--[if (gte mso 9)|(IE)]>

                <table id="tableForOutlook" align="center">

                    <tr>

                        <td>

                <![endif]-->

            

            <tr>

                <td align="center" style="padding: 15px; border-bottom: 10px solid #fdb913;">


                    <table class="contents" style="width: 100%; max-width: 650px;" align="center" border="0" cellspacing="0" cellpadding="0">


                              <<<YOUR EMAIL BODY>>>


                    </table>

                </td>

            </tr>

            

            <!--[if (gte mso 9)|(IE)]>

                  </td>

            </tr>

            </table>

            <![endif]-->

        </table>



    The highlighted bgcolor is how to set the background color for the entire e-mail.


    I use some outlook specific code in out emails so that they stay at 600px on a desktop.


    Let me know if that helps and if you have more questions.


    Thanks,


    Phil

     

Categories