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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!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">

<head>
  <title>Casper</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0 " />
  <meta name="format-detection" content="telephone=no" />
  <style type="text/css">
    body { margin: 0 !important; padding: 0 !important; -webkit-text-size-adjust: 100% !important; -ms-text-size-adjust: 100% !important; -webkit-font-smoothing: antialiased !important; }
      			img { border: 0 !important; outline: none !important; display: block !important; }
      			p { margin: 0px !important; padding: 0px !important; }
      			table { border-collapse: collapse; mso-table-lspace: 0px; mso-table-rspace: 0px; }
      			td, a, span { border-collapse: collapse; mso-line-height-rule: exactly; }
      			.ExternalClass * { line-height: 100%; }
      			div { line-height: inherit !important; }
      			.blue a {text-decoration: underline;color: #2f539f;}
      			.em_link a {text-decoration: underline;color: #00237e;}
      			td[class=em_aside] { padding-left: 10px !important; padding-right: 10px !important; }
      			@media only screen and (min-width:481px) and (max-width:600px) {
      			table[class=em_wrapper] { width: 100% !important; }
      			td[class=em_aside] { padding-left: 10px !important; padding-right: 10px !important; }
      			td[class=em_hide], table[class=em_hide], span[class=em_hide], br[class=em_hide] { display: none !important; }
      			img[class=em_full_img] { width: 100% !important; height: auto !important; max-width: 100% !important; }
      			td[class=em_align_cent] { text-align: center !important; }
      			td[class=fix_h] {	height: 25px !important;}
      			td[class=em_product_side]{width:20px !important;}
      			td[class=em_product_name]{ font-size:17px !important}
      			}
      			@media only screen and (max-width:480px) {
      			table[class=em_wrapper] { width: 100% !important; }
      			td[class=em_aside] { padding-left: 10px !important; padding-right: 10px !important; }
      			td[class=em_hide], table[class=em_hide], span[class=em_hide], br[class=em_hide] { display: none !important; }
      			img[class=em_full_img] { width: 100% !important; height: auto !important; max-width: 100% !important; }
      			td[class=em_align_cent] { text-align: center !important; }
      			td[class=fix_h] {height: 25px !important;}
      			td[class=em_product_side]{width:10px !important;}
      			td[class=em_product_name]{ font-size:15px !important; letter-spacing:normal !important}
      			}
  </style>
</head>

<body style="margin:0px; padding:0px;" bgcolor="#ffffff">
  <!--Full width table start-->
  <table width="100%" border="0" align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0">
    <!-- header -->
    <tr>
      <td align="center" class="em_aside">
        <table width="600" border="0" cellspacing="0" cellpadding="0" class="em_wrapper">
          <tr>
            <td style="font-family:Arial, Helvetica, sans-serif; line-height:13px;" align="right" height="30" valign="middle">
              <a href="#" style="font-size:10px; color:#b2b2b2; text-decoration:underline;">View in browser</a>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td align="left" valign="middle" style="font-family: Corbel, Helvetica, Verdana, sans-serif; font-size: 1px; color: #ffffff; text-align: center; line-height:1px;"></td>
    </tr>
    <!-- main content -->
    <tr>
      <td align="center" bgcolor="#f5f5f5" class="em_aside">
        <table width="600" border="0" cellspacing="0" cellpadding="0" class="em_wrapper">
          <tr>
            <td height="26" style="line-height:0px; font-size:0px;">&nbsp;</td>
          </tr>
          <tr>
            <td align="center">
              <a href="https://casper.com/?utm_source=email&utm_medium=emailaptitude&utm_campaign=New+Cart+Abandon+1&utm_content=Did+you+forget+something?&cvosrc=email.EmailAptitude.New+Cart+Abandon+1&recipient_email=" target="_blank">
                <img src="http://wac.659b.edgecastcdn.net/00659B/casper/general/casper.png" width="90" alt="Casper" style="display:block;max-width:90px;" border="0" />
              </a>
            </td>
          </tr>
          <tr>
            <td height="26" style="line-height:0px; font-size:0px;">&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#ffffff">
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="center">
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td>
                          <a href="https://casper.com/cart?utm_source=email&utm_medium=emailaptitude&utm_campaign=New+Cart+Abandon+1&utm_content=Did+you+forget+something?&cvosrc=email.EmailAptitude.New+Cart+Abandon+1&recipient_email=" target="_blank" style="text-decoration:none;">
                            <img class="em_full_img" src="http://wac.659b.edgecastcdn.net/00659B/casper/2015/october/Abandon_Cart/abandoned_cart-1_01a.jpg" alt="COME BACK TO BED - Looks like you left something behind. Return to your cart  to
complete your Casper purchase." width="600" height="290" style="display:block;" border="0">
                          </a>
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <td width="30" class="em_product_side"></td>
                            <td>
                              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <!--------------------------------------------------------------------------------------------Cart
                                  Products Start-------------------------------------------------------------------------------------------->
                                <!--Cart Product Start-->
                                <tr>
                                  <td height="2" bgcolor="#eeeeee" style="line-height:0px; font-size:0px; height:2px; ">&nbsp;</td>
                                </tr>
                                <tr>
                                  <td height="28" style="line-height:0px; font-size:0px;">&nbsp;</td>
                                </tr>
                                <tr>
                                  <td>
                                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tbody>
                                        <tr>
                                          <td width="80">
                                            <a href="https://casper.com/cart?utm_source=email&utm_medium=emailaptitude&utm_campaign=New+Cart+Abandon+1&utm_content=Did+you+forget+something?&cvosrc=email.EmailAptitude.New+Cart+Abandon+1&recipient_email=" target="_blank" style="text-decoration:none;">
                                              <img src="http://wac.659b.edgecastcdn.net/00659B/casper/2015/cart/pillow.jpg" alt="Pillow (Standard)" width="80" height="80" style="display:block;" border="0">
                                            </a>
                                          </td>
                                          <td width="20" class="em_product_side"></td>
                                          <td style="font-size:19px;  font-family:Arial, Helvetica, sans-serif; color:#616262l;letter-spacing:.035em;" class="em_product_name">
                                            <a href="https://casper.com/cart?utm_source=email&utm_medium=emailaptitude&utm_campaign=New+Cart+Abandon+1&utm_content=Did+you+forget+something?&cvosrc=email.EmailAptitude.New+Cart+Abandon+1&recipient_email=" style="color:#616262; text-decoration:none;"
                                              target="_blank">Pillow (Standard)</a>
                                          </td>
                                        </tr>
                                      </tbody>
                                    </table>
                                  </td>
                                </tr>
                                <tr>
                                  <td height="28" style="line-height:0px; font-size:0px;">&nbsp;</td>
                                </tr>
                                <!--Cart Product End-->
                                <!--------------------------------------------------------------------------------------------Cart
                                  Products End-------------------------------------------------------------------------------------------->
                                <tr>
                                  <td height="2" bgcolor="#eeeeee" style="line-height:0px; font-size:0px; height:2px; ">&nbsp;</td>
                                </tr>
                              </table>
                            </td>
                            <td width="30" class="em_product_side"></td>
                          </table>
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <a href="https://casper.com/cart?utm_source=email&utm_medium=emailaptitude&utm_campaign=New+Cart+Abandon+1&utm_content=Did+you+forget+something?&cvosrc=email.EmailAptitude.New+Cart+Abandon+1&recipient_email=" target="_blank" style="text-decoration:none;">
                            <img class="em_full_img" src="http://wac.659b.edgecastcdn.net/00659B/casper/2015/october/Abandon_Cart/abandoned_cart-1_02a.jpg" alt="RETURN TO CART" width="600" style="display:block;" border="0">
                          </a>
                        </td>
                      </tr>
                      <tr>
                        <td height="20" bgcolor="#f5f5f5" style="line-height:0px; font-size:0px;">&nbsp;</td>
                      </tr>
                      <tr>
                        <td>
                          <a href="https://casper.com/mattresses/reviews?utm_source=email&utm_medium=emailaptitude&utm_campaign=New+Cart+Abandon+1&utm_content=Did+you+forget+something?&cvosrc=email.EmailAptitude.New+Cart+Abandon+1&recipient_email=" target="_blank" style="text-decoration:none;">
                            <img class="em_full_img" src="http://wac.659b.edgecastcdn.net/00659B/casper/2015/october/Abandon_Cart/abandoned_cart-1_04a.jpg" alt="READ MORE REVIEWS" width="600" style="display:block;" border="0">
                          </a>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td height="58" style="line-height:0px; font-size:0px;">&nbsp;</td>
          </tr>
          <tr>
            <td style="font-family:Arial, Helvetica, sans-serif;font-size:13px;letter-spacing:.08em; color:#999999;" align="center">
              <a href="mailto:support@casper.com" style=" color:#999999; text-decoration:none;">support@casper.com</a>|
              <a href="tel:888-498-0003" style=" color:#999999; text-decoration:none;">+1 888-498-0003</a>
            </td>
          </tr>
          <tr>
            <td height="24" style="line-height:0px; font-size:0px;">&nbsp;</td>
          </tr>
          <tr>
            <td align="center">
              <table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="11">
                    <a href="http://instagram.com/casper/" target="_blank">
                      <img src="http://wac.659b.edgecastcdn.net/00659B/casper/general/ico-instagram.png" width="20" height="21" alt="Instagram" style="display:block;max-width:20px;" border="0" />
                    </a>
                  </td>
                  <td width="28">&nbsp;</td>
                  <td width="22">
                    <a href="https://www.pinterest.com/caspersleep" target="_blank">
                      <img src="http://wac.659b.edgecastcdn.net/00659B/casper/general/ico-pinterest.png" width="22" height="21" alt="Pinterest" style="display:block;max-width:22px;" border="0" />
                    </a>
                  </td>
                  <td width="28">&nbsp;</td>
                  <td width="25">
                    <a href="https://twitter.com/casper" target="_blank">
                      <img src="http://wac.659b.edgecastcdn.net/00659B/casper/general/ico-twitter.png" width="25" height="21" alt="Twitter" style="display:block;max-width:25px;" border="0" />
                    </a>
                  </td>
                  <td width="28">&nbsp;</td>
                  <td width="11">
                    <a href="https://www.facebook.com/caspersleep" target="_blank">
                      <img src="http://wac.659b.edgecastcdn.net/00659B/casper/general/ico-facebook.png" width="11" height="21" alt="Facebook" style="display:block;max-width:11px;" border="0" />
                    </a>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td height="58" style="line-height:0px; font-size:0px;">&nbsp;</td>
          </tr>
        </table>
      </td>
    </tr>
    <!-- footer -->
    <tr>
      <td align="center">
        <table width="600" border="0" cellspacing="0" cellpadding="0" class="em_wrapper">
          <tr>
            <td height="10" style="line-height:0px; font-size:0px;">&nbsp;</td>
          </tr>
          <tr>
            <td style=" color:#b2b2b2;font-family:Arial, Helvetica, sans-serif;font-size:10px;" align="center">45 Bond St, New York NY, 10012 &nbsp;|&nbsp; &copy; 2015 Casper Sleep Inc.
              <br />If you prefer not to receive emails, you may
              <a href="#" style=" color:#b2b2b2; text-decoration:underline;">unsubscribe</a>
            </td>
          </tr>
          <tr>
            <td height="10" style="line-height:0px; font-size:0px;">&nbsp;</td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <div style="display:none; white-space:nowrap; font:20px courier; background-color:#ffffff; color:#ffffff;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
  
</body>

</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console