GithubHelp home page GithubHelp logo

xdmr / mailhydra Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7.85 MB

A set of beautiful HTML emails. Templates are using the most reliable method for achieving responsive design, fluid tables. MailHydra projects contain 4 email templates that are free to use.

Home Page: https://mailhydra.com/

HTML 97.39% CSS 2.61%
email-template emails

mailhydra's Introduction

mailhydra

Coding responsive colums with HTML tables

References:Developing HTML Emails Using “Ghost Tables”

Two Columns Example

Columns (no ghost tables)

<tr>
    <td>


        <table width=100%>
            <tr>
                <td class="two-columns" valign=top style="font-size:0;">


                    <table style="max-width: 250; vertical-align: top; display: inline-block;">
                        <tr>
                            <td>
                                <p>Content goes here. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ullam, nemo.</p>
                            </td>
                        </tr>
                    </table>

                    <table style="max-width: 250; vertical-align: top;width: 100%; display: inline-block;">
                        <tr>
                            <td>
                                <p>Content goes here. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ullam, nemo.</p>
                            </td>
                        </tr>
                    </table>


                </td>
            </tr>
        </table>

    </td>
</tr>

Columns with included ghost tables for Outlook support

<tr>
    <td>


        <table width=100%>
            <tr>
                <td class="two-columns" valign=top style="font-size:0;">
                    <!--[if (gte mso 9)|(IE)]>
                    <table width="100%" style="border-spacing: 0;" role="presentation">
                        <tr>
                       
                        <td width="300" valign="top" style="padding: 0;">
                        <![endif]-->

                    <table style="max-width: 250; vertical-align: top; display: inline-block;">
                        <tr>
                            <td>
                                <p>Content goes here. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ullam,
                                    nemo.</p>
                            </td>
                        </tr>
                    </table>

                      <!--[if (gte mso 9)|(IE)]>
                      </td>
                      <td width="300" valign="top" style="padding: 0;">
                      <![endif]-->
                    


                    <table style="max-width: 250; vertical-align: top;width: 100%; display: inline-block;">
                        <tr>
                            <td>
                                <p>Content goes here. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ullam,
                                    nemo.</p>
                            </td>
                        </tr>
                    </table>
                      <!--[if (gte mso 9)|(IE)]>
                        </td>
                        </tr>
                   </table>
                   <![endif]-->


                </td>
            </tr>
        </table>

    </td>
</tr>

When in doubt include those tags with your table element

<table rel="presentation" border="0" cellpadding="0" cellspacing="0">

mailhydra's People

Contributors

xdmr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.