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:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraph.org/schema/"> <head>
        
<meta property="og:title" content="Pink Friday - Be better at sleep with Dreem">
<meta property="fb:page_id" content="43929265776">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="referrer" content="origin">        
    <meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
    <meta name="referrer" content="no-referrer">
    <title>Dreem</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:0 !important;
			padding:0 !important;
		}
		table{
			border-collapse:collapse;
			mso-table-lspace:0;
			mso-table-rspace:0;
		}
		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;
		}
		.mobile{
			display:none;
		}
	@media only screen and (min-width:481px) and (max-width:600px){
		table[class=em_wrapper]{
			width:100% !important;
		}

}	@media only screen and (min-width:481px) and (max-width:600px){
		td[class=em_aside]{
			padding-left:10px !important;
			padding-right:10px !important;
		}

}	@media only screen and (min-width:481px) and (max-width:600px){
		td[class=em_hide],table[class=em_hide],span[class=em_hide],br[class=em_hide]{
			display:none !important;
		}

}	@media only screen and (min-width:481px) and (max-width:600px){
		img[class=em_full_img]{
			width:100% !important;
			height:auto !important;
			max-width:100% !important;
		}

}	@media only screen and (min-width:481px) and (max-width:600px){
		td[class=em_align_cent]{
			text-align:center !important;
		}

}	@media only screen and (min-width:481px) and (max-width:600px){
		td[class=fix_h]{
			height:25px !important;
		}

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

}	@media only screen and (max-width:480px){
		td[class=em_aside]{
			padding-left:10px !important;
			padding-right:10px !important;
		}

}	@media only screen and (max-width:480px){
		td[class=em_hide],table[class=em_hide],span[class=em_hide],br[class=em_hide]{
			display:none !important;
		}

}	@media only screen and (max-width:480px){
		img[class=em_full_img]{
			width:100% !important;
			height:auto !important;
			max-width:100% !important;
		}

}	@media only screen and (max-width:480px){
		td[class=em_align_cent]{
			text-align:center !important;
		}

}	@media only screen and (max-width:480px){
		td[class=fix_h]{
			height:25px !important;
		}

}	@media only screen and (max-width:600px){
		.text{
			font-size:12px !important;
		}

}	@media only screen and (max-width:600px){
		.hidden{
			display:none !important;
		}

}	@media only screen and (max-width:600px){
		.mobile{
			display:block !important;
		}

}</style>                    </head>
  
  
  
   <body style="margin: 0px;padding: 0px;-webkit-text-size-adjust: 100% !important;-ms-text-size-adjust: 100% !important;-webkit-font-smoothing: antialiased !important;" bgcolor="#ffffff">
    <!--Full width table start-->
    <table width="100%" border="0" align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" style="border-collapse: collapse;mso-table-lspace: 0;mso-table-rspace: 0;">
      <!-- main content  -->
      <tr>
        <td align="center" bgcolor="#f5f5f5" class="em_aside" style="border-collapse: collapse;mso-line-height-rule: exactly;padding-left: 10px !important;padding-right: 10px !important;">
          <table width="600" border="0" cellspacing="0" cellpadding="0" class="em_wrapper" style="border-collapse: collapse;mso-table-lspace: 0;mso-table-rspace: 0;">
            <tr>
              <td bgcolor="#f5f5f5" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse;mso-table-lspace: 0;mso-table-rspace: 0;">
                  <tr>
                    <td align="center" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse;mso-table-lspace: 0;mso-table-rspace: 0;">
                        <tr>
                          <td align="center" colspan="3" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                            <a href="https://shop.dreem.com" target="_blank" style="text-decoration: none;color: #00227e;font-family: Arial, sans-serif;font-size: 23px;line-height: 31px;font-weight: bold;letter-spacing: 2px;border-collapse: collapse;mso-line-height-rule: exactly;"><img src="https://gallery.mailchimp.com/11561d2801deb76dcd3e29d20/images/66b65388-56b8-4a0f-ad44-4e11ecae4434.jpg" width="600" alt="Dreem - Let's celebrate Pink Friday" style="display: block;max-width: 600px;border: 0 !important;outline: none !important;" border="0" class="em_full_img"></a>
                          </td>
                        </tr>
                        <tr style="background:#ffffff;" bgcolor="#ffffff">
                          <td width="40" bgcolor="#ffffff" class="hidden" style="border-collapse: collapse;mso-line-height-rule: exactly;"></td>
                          <td width="20" bgcolor="#ffffff" class="mobile" style="border-collapse: collapse;mso-line-height-rule: exactly;display: none;"> </td>
                          <td align="center" bgcolor="#ffffff" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                            <p class="text" style="color: #b2b2b2;font-family: Arial, Helvetica, sans-serif;font-size: 16px;line-height: 26px;margin: 0 !important;padding: 0 !important;">Be finally better at sleep with our first Pink Friday offer:</p>
                            <p class="text" style="color: #ff0064;font-family: Arial, Helvetica, sans-serif;font-size: 16px;font-weight: bold;line-height: 40px;margin: 0 !important;padding: 0 !important;">$75 off Dreem</p>
                            <p class="text" style="color: #b2b2b2;font-family: Arial, Helvetica, sans-serif;font-size: 16px;line-height: 26px;margin: 0 !important;padding: 0 !important;">with the promo code <span style="color: #ff0064;font-family: Arial, Helvetica, sans-serif;font-size: 16px;font-style: italic;font-weight: bold;border-collapse: collapse;mso-line-height-rule: exactly;">PINKFRIDAY</span> that you can enter at the<br>beginning of the checkout until Monday, November 26th - midnight.</p>
                            <br>
                            <p class="text" style="color: #b2b2b2;font-family: Arial, Helvetica, sans-serif;font-size: 12px;line-height: 16px;padding-top: 26px;margin-bottom: 0px;margin: 0 !important;padding: 0 !important;">*Get $200 off on 2 Dreem Bands with the promo code: <b>
                              <i>PINKFRIDAY2</i></b>
                            </p>
                          </td>
                          <td width="40" bgcolor="#ffffff" class="hidden" style="border-collapse: collapse;mso-line-height-rule: exactly;"></td>
                          <td width="20" bgcolor="#ffffff" class="mobile" style="border-collapse: collapse;mso-line-height-rule: exactly;display: none;"> </td>
                        </tr>
                        <tr>
                          <td align="center" colspan="3" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                            <a href="https://shop.dreem.com" target="_blank" style="color: #00227e;font-family: Arial, sans-serif;font-size: 23px;line-height: 31px;font-weight: bold;letter-spacing: 2px;border-collapse: collapse;mso-line-height-rule: exactly;">
                              <img src="https://gallery.mailchimp.com/11561d2801deb76dcd3e29d20/images/b4a5a6e4-35be-437f-852c-18a94c1a211a.jpg" alt="Shop now" width="600" style="display: block;max-width: 600px;border: 0 !important;outline: none !important;" border="0" class="em_full_img"></a>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td height="58" style="line-height: 0px;font-size: 0px;border-collapse: collapse;mso-line-height-rule: exactly;"> 
                      </td>
                    </tr>
                    <tr>
                      <td bgcolor="#f5f5f5" style="font-family: Arial, Helvetica, sans-serif;font-size: 13px;letter-spacing: .08em;color: #999999;border-collapse: collapse;mso-line-height-rule: exactly;" align="center">
                        <a href="https://support.dreem.com/hc/en" style="color: #999999;text-decoration: none;border-collapse: collapse;mso-line-height-rule: exactly;"> support.dreem.com </a>
                      </td>
                    </tr>
                    <tr>
                      <td bgcolor="#f5f5f5" height="24" style="line-height: 0px;font-size: 0px;border-collapse: collapse;mso-line-height-rule: exactly;"> 
                      </td>
                    </tr>
                    <tr>
                      <td bgcolor="#f5f5f5" align="center" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                        <table width="212" border="0" align="center" cellpadding="0" cellspacing="0" style="width: 212px;border-collapse: collapse;mso-table-lspace: 0;mso-table-rspace: 0;">
                          <tr>
                            <td width="20" style="width: 20px;border-collapse: collapse;mso-line-height-rule: exactly;">
                              <a href="https://www.instagram.com/dreem_official/" target="_blank" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                                <img src="https://gallery.mailchimp.com/11561d2801deb76dcd3e29d20/images/f13d7d62-c0e7-4b05-af26-e86ce60bd1a9.png" width="20" height="21" alt="Instagram" style="display: block;max-width: 20px;border: 0 !important;outline: none !important;" border="0"></a>
                              </td>
                              <td width="28" style="border-collapse: collapse;mso-line-height-rule: exactly;"> 
                              </td>
                              <td width="25" style="width: 25px;border-collapse: collapse;mso-line-height-rule: exactly;">
                                <a href="https://twitter.com/dreem_official" target="_blank" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                                  <img src="https://gallery.mailchimp.com/11561d2801deb76dcd3e29d20/images/56aac389-3d66-44da-8b76-a238f77753a9.png" width="25" height="21" alt="Twitter" style="display: block;max-width: 25px;border: 0 !important;outline: none !important;" border="0"></a>
                                </td>
                                <td width="28" style="border-collapse: collapse;mso-line-height-rule: exactly;"> 
                                </td>
                                <td width="11" style="width: 11px;border-collapse: collapse;mso-line-height-rule: exactly;">
                                  <a href="https://www.facebook.com/dreemofficial/" target="_blank" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                                    <img src="https://gallery.mailchimp.com/11561d2801deb76dcd3e29d20/images/afca93f1-5167-4e54-8292-9cd8e9e3077f.png" width="11" height="21" alt="Facebook" style="display: block;max-width: 11px;border: 0 !important;outline: none !important;" border="0"></a>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <tr>
                            <td height="58" style="line-height: 0px;font-size: 0px;border-collapse: collapse;mso-line-height-rule: exactly;"> 
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <!-- footer -->
              <tr>
                <td align="center" style="border-collapse: collapse;mso-line-height-rule: exactly;">
                  <table width="600" border="0" cellspacing="0" cellpadding="0" class="em_wrapper" style="border-collapse: collapse;mso-table-lspace: 0;mso-table-rspace: 0;">
                    <tr>
                      <td height="10" style="line-height: 0px;font-size: 0px;border-collapse: collapse;mso-line-height-rule: exactly;"> 
                      </td>
                    </tr>
                    <tr>
                      <td style="color: #b2b2b2;font-family: Arial, Helvetica, sans-serif;font-size: 10px;border-collapse: collapse;mso-line-height-rule: exactly;" align="center">
                        Valid until November 26, 2018. <a href="https://dreem.com/en/sales" target="_blank" style="text-decoration: underline;color: #b2b2b2;border-collapse: collapse;mso-line-height-rule: exactly;">Terms and conditions</a>.<br>
                        <br>
                        7 Boulevard Haussmann, 75009 Paris, FRANCE | © 2018 Dreem<br>
                        Want to change how you receive these emails?<a href="#" style="color: #b2b2b2;text-decoration: underline;border-collapse: collapse;mso-line-height-rule: exactly;"> you can unsubscribe here </a>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td height="10" style="line-height: 0px;font-size: 0px;border-collapse: collapse;mso-line-height-rule: exactly;"> 
                </td>
              </tr>
            </table>
            <div style="display: none;white-space: nowrap;font: 20px courier;background-color: #ffffff;color: #ffffff;line-height: inherit !important;">
                                                         
            </div>
            <div class="gmailfix" style="white-space: nowrap;font: 15px courier;line-height: inherit !important;display: none;">                                                           </div>
          </body> 
    
    </body> </html>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console