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

Save Automatically?

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

              
                <body color="#001c35" style="background-color:#001c35; -webkit-text-size-adjust: none;">

  <style type="text/css">
    body { margin: 0; padding: 0;}
    table {border-collapse: collapse;}
    div, p, a, li, td { -webkit-text-size-adjust:none; }
    a { cursor: pointer;}
    .ReadMsgBody { width: 100%;}
    .ExternalClass {width: 100%;}
    .ExternalClass * {line-height: 100%; mso-line-height-rule:exactly;} 
    @media screen and (max-width: 479px) {
      *[class='hide'] { display:none !important; }
      *[class='stack'] {display:block !important;}
      *[class='width320'] { width: 320px !important; }
      *[class='width290'] { width: 290px !important; }
    }
  </style>

  <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#001C35">
    
    <!-- Preheader -->
    <tr align="center">
      <td valign="top">
        <table width="600" class="width320" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#001C35">
          <tr>
            <td>
              <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:13px; font-weight:bold; color:#6baddf">
                    <br/> Email Title
                  </td>
                </tr>
                <tr>
                  <td align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#6baddf;">
                    Can't see your images? Click <a href="%%view_email_url%%" target="_blank" style="text-decoration:underline; color:#7f98a4;">here</a></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td valign="top">
              <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" height="15" border="0" style="display: block;" alt="" />
            </td>
          </tr>
        </table>
      </td>
    </tr>

    <!--header logo -->
    <tr align="center">
      <td>
        <table width="600" class="width320" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#001C35" style="border:solid 2px #6baddf">
          <tr>
            <td valign="top">
              <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" height="15" border="0" style="display: block;" alt="" />
            </td>
          </tr>          
          <tr>
            <td>
              <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
                <tr>            
                  <td valign="top" class="hide" style="line-height:1;">
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" width="170" height="40" border="0" style="display: block;" alt="" />
                  </td>
                  <td valign="top" class="width320" align="center">
                    <a href="" target="_blank" style="text-decoration:none; display:block;"><img src="" border="0" style="display: block; color:#6baddf; font-size:18px;font-family:Arial, Helvetica, sans-serif" alt="HEADER" height="40" /></a>
                  </td>
                  <td valign="top" class="width320" >
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif"  width="170" height="40" border="0" style="display: block;" alt="" />
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>

    <!--menu -->
    <tr align="center">
      <td>
        <table width="600" class="width320" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#6baddf" style="border:solid 1px #6baddf; border-bottom: solid 1px #001c35;">
          <tr>
            <td valign="top" class='width320' style="font-size:16px; color: #ffffff; line-height: 1.5; margin:0; font-family: Helvetica, Arial, sans-serif;">
              <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td valign="top"  align="center">
                  MENU 1  
                  </td>
                  <td valign="top" class="hide"  align="center">
                  MENU 2  
                  </td>
                  <td valign="top" align="center">
                  MENU 3  
                  </td>                  
                </tr>
              </table>
            </td>
          </tr>
        </table>


        <table width="600" class="width320" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#6baddf" style="border:solid 1px #6baddf">
          <tr>
            <td>
              <!--LEFT BODY BORDER -->
              <table width="15" class="hide" align="center" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td valign="top" width="15">
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" width="15" border="0" style="display: block;" alt="" />
                  </td>
                </tr>
              </table>
            </td>

            <td>
              <table width="560" class="width290" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#6baddf">
                <tr>
                  <td>
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" width="290" height="20" border="0" style="display: block;" alt="" />
                  </td>
                </tr>
                <tr>
                  <td>
                    <table width="560" class="width290" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#6baddf">
                      <tr>
                        <td valign="top" style="font-family: Helvetica, Arial, sans-serif;">
                          <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td valign="top" class="width290">
                                <a href="" target="_blank" style="text-decoration:none; display:block;">
                                  <!-- placeholder image -->
                                  <img src="" border="0" style="display: block; background:#000000; color:#6baddf; font-size:18px;font-family:Arial, Helvetica, sans-serif" alt="Image goes here" width="560" height="220px" class="width290" />
                                </a>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" width="290" height="20" border="0" style="display: block;" alt="" />
                              </td>
                            </tr>
                            <tr>
                              <!-- placeholder title -->
                              <td valign="top" align="left" style="font-size:20px; color: #ffffff; line-height: 1.25; font-weight: bold; margin:0; font-family: Helvetica, Arial, sans-serif;">
                                TITLE GOES HERE
                              </td>
                            </tr>

                            <tr>
                              <td>
                                <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" width="100%" height="10" border="0" style="display: block;" alt="" />
                              </td>
                            </tr>
                            <tr>
                              <!-- placeholder content -->
                              <td valign="top" align="left" style="color:#001c35; font-size: 15px; line-height: 1.3; font-family: Helvetica, Arial, sans-serif;">
                                Prosciutto salami pork ribeye pork belly strip steak rump ham shankle filet mignon venison. Porchetta kielbasa chuck leberkas <a href="" target="_blank" style="text-decoration:none;color:#ffffff;"> Sample text button</a>cow salami. Shankle strip steak tri-tip meatloaf tenderloin. Meatloaf leberkas shoulder andouille kielbasa beef jerky swine salami spare ribs. Sausage ball tip short loin chuck.
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" width="100%" height="20" border="0" style="display: block;" alt="" />
                              </td>
                            </tr>
                            <tr>
                              <td valign="top" align="left" bgcolor="#6baddf">
                               <!-- button, make yours at https://buttons.cm/ -->
                                <div><!--[if mso]>
                                  <v:rect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://" style="height:40px;v-text-anchor:middle;width:200px;" stroke="f" fillcolor="#001C35">
                                    <w:anchorlock/>
                                    <center>
                                  <![endif]-->
                                      <a href="http://"
                                style="background-color:#001C35;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;">BUY ALL THE THINGS!</a>
                                  <!--[if mso]>
                                    </center>
                                  </v:rect>
                                <![endif]-->
                                </div>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td>
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" width="100%" height="20" border="0" style="display: block;" alt="" />
                  </td>
                </tr>

              </table>
            </td>

            <td>
              <table width="15" class="hide" align="center" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <!--RIGHT BODY BORDER -->
                  <td valign="top" width="15">
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" width="15" border="0" style="display: block;" alt="" />
                  </td>
                </tr>
              </table>
            </td>
          </tr>
         
        </table>
      </td>
    </tr>
    
    <tr>
      <td valign="top">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95802/spacer.gif" height="50" border="0" style="display: block;" alt="" />
      </td>
    </tr>     

  </table>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console