Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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" xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office" lang="en" xml:lang="en">

<head>
    <title>Data Viz in Email: Area Chart</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <style type="text/css">
        /* DEFAULT STYLES */

        #outlook a {
            padding: 0;
        }

        .ReadMsgBody {
            width: 100%;
        }

        .ExternalClass {
            width: 100%;
        }

        .ExternalClass,
        .ExternalClass span,
        .ExternalClass td,
        .ExternalClass div {
            line-height: 100%;
        }

        body,
        table,
        td,
        a {
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
        }

        table,
        td {
            mso-table-lspace: 0pt;
            mso-table-rspace: 0pt;
        }

        img {
            -ms-interpolation-mode: bicubic;
            display: block;
            height: auto;
            border: 0;
            line-height: 100%;
            outline: none;
            text-decoration: none;
        }

        body {
            height: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            width: 100% !important;
        }

        sup {
            font-size: 50%;
            line-height: 1;
            vertical-align: top;
            mso-text-raise: 30%;
        }
        @media only screen and (max-width: 320px) {
            .chart-container {
                width: 300px !important;
                max-width: 300px
            }
        }
    </style>
    <style type="text/css">
        @media (prefers-dark-interface) {
            .body {
                background-color: #2a2c35;
                color: #FFFFFF;
            }
        }
    </style>

    <!--[if !mso]><!-->
        <style type="text/css">
            @media screen {
                @font-face {
                    font-family: "Nunito Light";
                    font-style: normal;
                    font-weight: 300;
                    src: local("Nunito Light"), local("Nunito-Light"), url(https://fonts.gstatic.com/s/nunito/v11/XRXW3I6Li01BKofAnsSUYevIWzgPDA.woff2) format("woff2");
                    mso-font-alt: 'Arial';
                }
                @font-face {
                    font-family: "Nunito Regular";
                    font-style: normal;
                    font-weight: 400;
                    src: local("Nunito Regular"), local("Nunito-Regular"), url(https://fonts.gstatic.com/s/nunito/v11/XRXV3I6Li01BKofINeaBTMnFcQ.woff2) format("woff2");
                    mso-font-alt: 'Arial';
                }
                @font-face {
                    font-family: "Nunito SemiBold";
                    font-style: normal;
                    font-weight: 600;
                    src: local("Nunito SemiBold"), local("Nunito-SemiBold"), url(https://fonts.gstatic.com/s/nunito/v11/XRXW3I6Li01BKofA6sKUYevIWzgPDA.woff2) format("woff2");
                    mso-font-alt: 'Arial';
                }
            }
        </style>
    <!--<![endif]-->

    <!--[if gte mso 9
      ]><xml>
        <o:OfficeDocumentSettings>
          <o:AllowPNG />
          <o:PixelsPerInch>96</o:PixelsPerInch>
        </o:OfficeDocumentSettings>
      </xml><!
    [endif]-->
    <!--[if mso]>
      <style type="text/css">
        	body, span, table, td, h1, h2, h3, p {font-family: Helvetica, Arial, sans-serif !important;}
        }
      </style>
    <![endif]-->
    <meta name="robots" content="noindex, nofollow" />
</head>

<body class="body" style="padding:0; margin:0; text-align:center; background-color: #2a2c35;">
    <table aria-label="Area Chart in Email" lang="en"
        style="width: 320px; max-width: 320px; table-layout: fixed; margin: 20px auto; border-collapse: collapse" class="chart-container">
        <tbody>
            <tr>
                <td colspan="7" align="left" valign="middle">
                    <h1
                        style="font-family: 'Nunito Light', 'Nunito-Light', Arial, sans-serif !important; font-weight: 300; margin: 0; font-size: 24px; line-height: 28px; color: #ffffff; margin:0; padding:0;">
                        On <span style="color: #ba3e8f; font-weight: 600;">Wednesdays</span> we <br>(mostly) wear pink
                    </h1>
                </td>
            </tr>
            <tr>
                <td colspan="7" style="font-size: 1px; line-height: 25px;">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <th
                    style="font-family: 'Nunito SemiBold', 'Nunito-SemiBold', Arial, sans-serif !important; font-weight: 600; font-size: 12px; color: #FFFFFF; text-align: center; padding: 0 0 10px;">
                    S</th>
                <th
                    style="font-family: 'Nunito SemiBold', 'Nunito-SemiBold', Arial, sans-serif !important; font-weight: 600; font-size: 12px; color: #FFFFFF; text-align: center; padding: 0 0 10px;">
                    M</th>
                <th
                    style="font-family: 'Nunito SemiBold', 'Nunito-SemiBold', Arial, sans-serif !important; font-weight: 600; font-size: 12px; color: #FFFFFF; text-align: center; padding: 0 0 10px;">
                    T</th>
                <th
                    style="font-family: 'Nunito SemiBold', 'Nunito-SemiBold', Arial, sans-serif !important; font-weight: 600; font-size: 12px; color: #FFFFFF; text-align: center; padding: 0 0 10px;">
                    W</th>
                <th
                    style="font-family: 'Nunito SemiBold', 'Nunito-SemiBold', Arial, sans-serif !important; font-weight: 600; font-size: 12px; color: #FFFFFF; text-align: center; padding: 0 0 10px;">
                    T</th>
                <th
                    style="font-family: 'Nunito SemiBold', 'Nunito-SemiBold', Arial, sans-serif !important; font-weight: 600; font-size: 12px; color: #FFFFFF; text-align: center; padding: 0 0 10px;">
                    F</th>
                <th
                    style="font-family: 'Nunito SemiBold', 'Nunito-SemiBold', Arial, sans-serif !important; font-weight: 600; font-size: 12px; color: #FFFFFF; text-align: center; padding: 0 0 10px;">
                    S</th>
            </tr>

            <tr>
                <td class="day"
                    width="40" style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">&nbsp;
                </td>
                <td class="day"
                    width="40" style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">&nbsp;
                </td>
                <td class="day" width="40" title="October 1st, 2019: 51"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #d384b7; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 2nd, 2019: 73"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #ba3e8f; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 3rd, 2019: 71"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color:#ba3e8f; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 4th, 2019: 46"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #d384b7; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 5th, 2019: 12"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #f6e7f1; height: 20px">&nbsp;</span>
                </td>
            </tr>

            <tr style="font-weight: 300">
                <td class="day" width="40" title="October 6th, 2019: 24"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #e9c0da; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 7th, 2019: 27"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #e9c0da; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 8th, 2019: 43"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color:#bf609e; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 9th, 2019: 68"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #ba3e8f; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 10th, 2019: 23"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color:#e9c0da; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 11th, 2019: 15"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #f6e7f1; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 12th, 2019: 10"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #f6e7f1; height: 20px">&nbsp;</span>
                </td>
            </tr>

            <tr style="font-weight: 300">
                <td class="day" width="40" title="October 13th, 2019: 19"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #e9c0da; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 14th, 2019: 32"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #bf609e; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 15th, 2019: 23"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color:#e9c0da; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 16th, 2019: 62"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #ba3e8f; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 17th, 2019: 34"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color:#bf609e; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 18th, 2019: 12"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #f6e7f1; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 19th, 2019: 49"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #bf609e; height: 20px">&nbsp;</span>
                </td>
            </tr>

            <tr style="font-weight: 300">
                <td class="day" width="40" title="October 20th, 2019: 24"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #d384b7; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 21st, 2019: 21"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #bf609e; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 22nd, 2019: 12"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color:#e9c0da; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 23rd, 2019: 17"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #d384b7; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 24th, 2019: 10"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color:#e9c0da; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 25th, 2019: 58"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #bf609e; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 26th, 2019: 28"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #d384b7; height: 20px">&nbsp;</span>
                </td>
            </tr>

            <tr style="font-weight: 300">
                <td class="day" width="40" title="October 27th, 2019: 18"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #e9c0da; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 28th, 2019: 35"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #bf609e; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 29th, 2019: 10"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color:#e9c0da; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 30th, 2019: 62"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color: #ba3e8f; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" title="October 31st, 2019: 27"
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">
                    <span
                        style="width: 100%; font-weight: 300; display: inline-block; background-color:#d384b7; height: 20px">&nbsp;</span>
                </td>
                <td class="day" width="40" 
                    style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">&nbsp;
                </td>
                <td class="day"
                    width="40" style="padding: 0 5px 5px 0; width: 40px; font-weight: 300; margin: 0; text-align: left">&nbsp;
                </td>
            </tr>
        </tbody>
    </table>
</body>

</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console