Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <table width="100%" bgcolor="#f7f7f7" cellpadding="0" cellspacing="0" border="0" id="background_table">
  <tbody>
    <tr>
      <td>
<!-- end of background table start -->

          <table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="body_table">
              <tbody>
                <tr>
                  <td width="100%" height="10">&nbsp;</td>
                </tr>
                <tr>
                  <td width="100%" bgcolor="#13B4D8" height="100">
                    Header
                  </td>
                </tr>
                <tr>
                  <td width="100%" height="10">&nbsp;</td>
                </tr>
              </tbody>
            </table>

<!-- 3 columns -->

          	<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="body_table">
              <tbody>
                <tr>
                  <td width="100%">
                  	<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="body_table">
                      <tbody>
                        <tr>
                          <td><!-- col 1 -->

                            <table bgcolor="#B8ECB3" width="180" height="300" align="left" border="0" cellpadding="0" cellspacing="0" class="column_table">
                              <tbody>
                                <tr>
                                  <td>
                                        Column 1
                                 </td>
                                </tr>
                              </tbody>
                            </table>

                            <!-- end of col 1 -->
                            <!-- spacing -->

                            <table width="30" align="left" border="0" cellpadding="0" cellspacing="0" class="spacer_table">
                              <tbody>
                                <tr>
                                  <td width="100%" height="15" bgcolor="#E59EDF">&nbsp;</td>
                                </tr>
                              </tbody>
                            </table>

                            <!-- end of spacing -->
                            <!-- col 2 -->

                            <table bgcolor="#B8ECB3" width="180" height="300" align="left" border="0" cellpadding="0" cellspacing="0" class="column_table">
                              <tbody>
                                <tr>
                                  <td>
                                        Column 2
                                 </td>
                                </tr>
                              </tbody>
                            </table>

                            <!-- end of col 2 -->
                            <!-- spacing -->

                            <table width="30" align="left" border="0" cellpadding="0" cellspacing="0" class="spacer_table">
                              <tbody>
                                <tr>
                                  <td width="100%" height="15" bgcolor="#E59EDF">&nbsp;</td>
                                </tr>
                              </tbody>
                            </table>

                            <!-- end of spacing -->
                            <!-- col 3 -->

                            <table bgcolor="#B8ECB3" width="180" height="300" align="left" border="0" cellpadding="0" cellspacing="0" class="column_table">
                              <tbody>
                                <tr>
                                  <td>
                                        Column 3
                                 </td>
                                </tr>
                              </tbody>
                            </table>

                            <!-- end of col 3 --></td>
                          <!-- spacing -->
                          <!-- end of spacing -->
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
              </tbody>
            </table>
<!-- end of 3 columns -->

<!-- footer -->
            <table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="body_table">
              <tbody>
                <tr>
                  <td width="100%"><table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="body_table">
                      <tbody>
                        <!-- Spacing -->
                        <tr>
                          <td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;">&nbsp;</td>
                        </tr>
                        <!-- Spacing -->
                      </tbody>
                    </table></td>
                </tr>
              </tbody>
            </table>
<!-- end of footer -->

<!-- end of background table-->
        </td>
    </tr>
  </tbody>
</table>

<p><a href="http://www.sitepoint.com/tricks-building-responsive-email/">See article on Sitepoint</a></p>
              
            
!

CSS

              
                body {
	width: 100% !important;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	margin: 0;
	padding: 0;
}
#background_table {
	margin: 0;
	padding: 0;
	width: 100%!important;
	line-height: 100%!important;
}
img {
	outline: none;
	text-decoration: none;
	border: none;
	-ms-interpolation-mode: bicubic;
	max-width:100%;
	height:auto;
	display: block;
}

table td {
	border-collapse: collapse;
	vertical-align: middle;
	font-family: Helvetica, arial, sans-serif;
	font-size: 14px;
	color: #000;
	text-align:center;
}
table {
	border-collapse: collapse;
	mso-table-lspace: 0pt;
	mso-table-rspace: 0pt;
}

table[class="body_table"] {
	width: 600px;
}

table[class="column_table"] {
	width: 180px;
}

table[class="spacer_table"] {
	width: 30px;
	height:30px;
}

table[class="spacer_table"] td {
	 font-size:1px;
	 line-height:1px;
	 mso-line-height-rule: exactly;
}

@media only screen and (max-width: 480px) {
	table[class="body_table"] {
		width: 80%!important;
	}
	table[class="column_table"] {
		width: 100%!important;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console