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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <head>
  <!-- This is a simple example template that you can edit to create your own custom templates -->
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <!-- Facebook sharing information tags -->
  <meta property="og:title" content="*|MC:SUBJECT|*">
  <title>Welcome to GQ</title>
  <style type="text/css">
    body { background-color: #e1e1e1; margin:0 auto;  }
    img {height: auto;}
    .content {width: 100%; max-width: 600px;}
    h3 { 
    font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:26px;
    text-rendering: optimizeLegibility;
    color: #000000;
    margin-top:0px;
    padding-top:0px;
     }
     
     h3 a:link {
    	 color:#000000;
     }
     
    td img {
    	vertical-align:bottom;
    }
    
    p { 
    font-family: sans-serif;
    font-size: 13px;
    text-rendering: optimizeLegibility;
    margin-top:0px;
    padding-top:0px;
    }
    
    p.red { 
    color: #ff3c36;
    font-weight:bold;
    margin-bottom:15px;
    padding-bottom:0px;
    margin-top:0px;
    padding-top:0px;
    text-transform:uppercase;
    }
    
    p.caption { 
    text-align:center; 
    font-style: italic; 
    }
    
    .textPadding {
    	  padding-right: 20px;
    	  line-height: 32px;
      }
    
    .bttn {
    	padding-bottom:35px;
    }
    
    .socialTitle {
    	padding:40px;
    	text-align:center !important;
    }
    
    .socialTitle img {
    	width:280px !important;
    }
    
    .socialTouts {
    	text-align:center;
    }
    
    .socialTouts img{
    	width:155px;
    }
    
    .socialone {
    
    }
    
    .socialtwo {
    
    }
    
    .snapChat img {
    	width:500px;
    }
    
    .cmFooter img{
    	width:500px;
    }
    
    .snapChat {
    	padding: 20px 0;
    }
    
    .snapChatMobile img {
    	display:none;
    }
    
    .snapChatMobile img {
    	display:none;
    }
    
    .cmFooterMobile img {
    	display:none;
    }
    
    .gqLogo img{
    	width:69px;
    }
  </style>
</head>

<body>
  <table cellspacing="0" cellpadding="0" border="0" width="100%" class="mcnTextBlock" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
    <tbody>
      <tr>
        <td valign="top" class="mcnTextBlockInner" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
          <table cellspacing="0" cellpadding="0" border="0" align="left" width="100%" class="mcnTextContentContainer" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
            <tbody>
              <tr>
                <td valign="top" class="mcnTextContent" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;">
                  <div style="background-color: #e1e1e1; font-size:10px; color:#9A9A9A; font-family: Verdana; text-align: center; line-height:16px; padding:7px;"><a target="_blank" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: inherit;cursor: pointer;" name="www_gq_com_story_ring_jac" href="http://www.gq.com/story/ring-jacket-japanese-brand?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2">The Affordable Trend We’re Flipping For</a><br>                    If you have problems viewing this email, <a name="CustomClickToView_SPCLICKTOVIE" id="CustomClickToView_SPCLICKTOVIE" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: inherit;cursor: pointer;text-decoration: none !important;"
                      xt="SPCLICKTOVIEW" href="#" target="_blank">click here</a>.</div>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>
  <table cellspacing="0" cellpadding="0" border="0" width="100%">
    <tbody>
      <tr>
        <td align="center">
          <table cellspacing="0" cellpadding="0" border="0" width="600" style="background-color:#ffffff;">
            <tbody>
              <tr>
                <td>
                  <a name="GQ Welcome" target="_blank" href="http://www.gq.com/?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2"><img border="0" width="640" height="608" id="Cont_0" alt="" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/header-17.jpg"></a>
                </td>
              </tr>
              <tr>
                <td>
                  <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; max-width: 600px; border-bottom:1px solid #e1e1e1;">
                    <tbody>
                      <tr>
                        <td width="50%" valign="top" class="full" style="text-align: center;">
                          <a name="Style_Grooming" target="_blank" href="http://www.gq.com/gallery/under-100-february-2016-shopping-guide?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2"><img border="0" width="300" height="321" alt="Right-side image" id="style.jpg" title="Right-side image" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/style3.jpg"></a>
                        </td>
                        <td width="50%" class="full" style="padding-right:10px;">
                          <div class="textPadding">
                            <p class="red" style="color:#ff3c36; font-weight:bold; text-transform:uppercase; font-size:14px; letter-spacing:1px;">STYLE &amp; GROOMING</p>
                            <h3 style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:26px; color:#000000; text-rendering: optimizeLegibility;"><a name="Style_Grooming" style="text-decoration:none; color:#000000;" target="_blank" href="http://www.gq.com/gallery/under-100-february-2016-shopping-guide?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2">Upgrade Your Entire Look for Under 100 Bucks</a></h3>
                            <div class="bttn">
                              <a name="Bttn_Read_More" target="_blank" href="http://www.gq.com/gallery/under-100-february-2016-shopping-guide?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2"><img width="137" height="43" alt="" id="bttn-read-more.jpg" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/bttn-read-more.jpg"></a>
                            </div>
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                  <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" dir="rtl" style="border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; max-width: 600px; background-color:#ffffff; border-bottom:1px solid #e1e1e1;">
                    <tbody>
                      <tr>
                        <td width="50%" valign="top" dir="ltr" class="full" style="text-align: center;">
                          <a name="Fitness" target="_blank" href="http://www.gq.com/story/how-to-get-beach-body-in-three-months?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2"><img border="0" width="299" height="321" alt="Right-side image" id="fitness.jpg" title="Right-side image" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/fitness.jpg"></a>
                        </td>
                        <td width="50%" style="padding-left:40px; padding-top:40px;" dir="ltr" class="full">
                          <div class="textPadding">
                            <p class="red" style="color:#ff3c36; font-weight:bold; text-transform:uppercase; font-size:14px; letter-spacing:1px;">FITNESS</p>
                            <h3 style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:26px; color:#000000; text-rendering: optimizeLegibility;"><a name="Fitness" style="text-decoration:none; color:#000000;" target="_blank" href="http://www.gq.com/story/how-to-get-beach-body-in-three-months?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2">How to Finally Get the Beach Body of Your Dreams</a></h3>
                            <div class="bttn">
                              <a name="Bttn_Read_More_1" target="_blank" href="http://www.gq.com/story/how-to-get-beach-body-in-three-months?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2"><img width="137" height="43" alt="" id="bttn-read-more.jpg" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/bttn-read-more.jpg"></a>
                            </div>
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                  <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; max-width: 600px; border-bottom:1px solid #e1e1e1;">
                    <tbody>
                      <tr>
                        <td width="50%" valign="bottom" class="full" style="text-align: center;">
                          <a name="GQ_Women" target="_blank" href="http://www.gq.com/gallery/emily-ratajkowski-blurred-lines-november-2013?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2"><img border="0" width="300" height="321" alt="Right-side image" id="emily.jpg" title="Right-side image" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/emily.jpg"></a>
                        </td>
                        <td width="50%" class="full">
                          <div class="textPadding">
                            <p class="red" style="color:#ff3c36; font-weight:bold; text-transform:uppercase; font-size:14px; letter-spacing:1px;">Women of GQ</p>
                            <h3 style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:26px; color:#000000; text-rendering: optimizeLegibility;"><a name="GQ_Women" style="text-decoration:none; color:#000000;" target="_blank" href="http://www.gq.com/gallery/emily-ratajkowski-blurred-lines-november-2013?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2">She's Finally Here, See GQ's Bombshell of the Summer</a></h3>
                            <div class="bttn">
                              <a name="Bttn_Read_More_2" target="_blank" href="http://www.gq.com/gallery/emily-ratajkowski-blurred-lines-november-2013?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2"><img width="137" height="43" alt="" id="bttn-read-more.jpg" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/bttn-read-more.jpg"></a>
                            </div>
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                  <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" dir="rtl" style="border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; max-width: 600px; background-color:#ffffff; border-bottom:1px solid #e1e1e1;">
                    <tbody>
                      <tr>
                        <td width="50%" valign="bottom" dir="ltr" class="full" style="text-align: center;">
                          <a name="Sex" target="_blank" href="http://www.gq.com/story/valentines-day-schedule-sex?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2"><img border="0" width="300" height="300" alt="Right-side image" id="vday-sex.gif" title="Right-side image" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/vday-sex.gif"></a>
                        </td>
                        <td width="50%" style="padding-left:40px" dir="ltr" class="full">
                          <div class="textPadding">
                            <p class="red" style="color:#ff3c36; font-weight:bold; text-transform:uppercase; font-size:14px; letter-spacing:1px;">sex &amp; relationship</p>
                            <h3 style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:26px; color:#000000; text-rendering: optimizeLegibility;"><a name="Sex" style="text-decoration:none; color:#000000;" target="_blank" href="http://www.gq.com/story/valentines-day-schedule-sex?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2">The Case for Scheduling Sex</a></h3>
                            <div class="bttn">
                              <a name="Bttn_Read_more" target="_blank" href="http://www.gq.com/story/valentines-day-schedule-sex?mbid=nl_welcome&amp;spMailingID=9335388&amp;spUserID=MTYxMDI2NDQ5NDMwS0&amp;spJobID=1020329364&amp;spReportId=MTAyMDI0NDUzOAS2"><img width="137" height="43" alt="" id="bttn-read-more.jpg" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/bttn-read-more.jpg"></a>
                            </div>
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
              <tr>
                <td>
                  <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tbody>
                      <tr>
                        <td align="center" class="socialTitle" style="padding:40px;"><img width="325" height="34" alt="" id="Follow_GQ_on_social copy.jpg" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/Follow_GQ_on_social%20copy.jpg"></td>
                      </tr>
                      <tr>
                        <td align="center" class="socialTouts">
                          <a name="GQ Instagram" style="padding-right:16px; " target="_blank" href="https://www.instagram.com/gq/?mbid=nl_welcome"><img width="155" height="153" alt="" class="socialone" id="GQ_Instagram-2.jpg" style="padding-right:16px; " src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/GQ_Instagram-2.jpg"></a>
                          <a name="GQ Facebook" style="padding-right:16px;"
                            target="_blank" href="https://www.facebook.com/gq?mbid=nl_welcome"><img width="155" height="153" alt="" class="socialtwo" id="GQ_Facebook-2.jpg" style="padding-right:16px;" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/GQ_Facebook-2.jpg"></a>
                          <a name="GQ Twitter" target="_blank" href="https://twitter.com/GQMagazine?mbid=nl_welcome"><img width="155" height="153" alt="" id="GQ_Twitter-2.jpg" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/GQ_Twitter-2.jpg"></a>
                        </td>
                      </tr>
                      <tr>
                        <td align="center" style="padding:20px 0px;"><img width="500" height="183" alt="" id="GQ_Snap.jpg" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/GQ_Snap.jpg"></td>
                      </tr>
                      <tr>
                        <td align="center" style="padding-top:30px;">
                          <div class="cmFooter" style="border-bottom:1px solid #e1e1e1;  margin:0 auto;">
                            <a name="GQ Subscribe" target="_blank" href="https://subscribe.gq.com/subscribe/gq/102125?source=GQM_CRM_Newsletter_Sub1_2016&amp;mbid=nl_welcome"><img width="500" height="140" alt="" id="Magazine-footer_2.jpg" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/Magazine-footer_2.jpg"></a>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td align="center" style="padding-top:25px; padding-bottom:25px;">
                          <div class="gqLogo"><img width="69" height="39" alt="" id="GQ logo copy.jpg" src="http://contentz.mkt6333.com/ra/2016/22388/08/9335388/GQ%20logo%20copy.jpg"></div>
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <table cellspacing="0" cellpadding="0" border="0" align="left" width="100%" class="mcnTextContentContainer" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
                            <tbody>
                              <tr>
                                <td valign="top" class="mcnTextContent" style="padding-top: 9px;text-align: center;padding-right: 18px;padding-bottom: 9px;padding-left: 18px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;">
                                  <div class="copyrightText" style="color: #999999;font-size: 11px;line-height: 16px;font-family: Verdana;margin-bottom: 20px;">This email was sent to you by GQ Magazine. To ensure delivery to your inbox (not bulk or junk folders), please add our e-mail address, <a name="GQ_newsletter_gq_com" class="blueLink" id="GQ_newsletter_gq_com" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #0076fe;cursor: pointer;text-decoration: none !important;"
                                      href="mailto:GQ@newsletter.gq.com" target="_blank">GQ@newsletter.gq.com</a>, to your address book.</div>
                                  <div class="copyrightText" style="color: #999999;font-size: 11px;line-height: 16px;font-family: Verdana;margin-bottom: 20px;">To view our Privacy Policy <a name="www_condenast_com_privacy_poli" class="blueLink" id="www_condenast_com_privacy_poli" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #0076fe;cursor: pointer;text-decoration: none !important;"
                                      href="http://www.condenast.com/privacy-policy#privacypolicy" target="_blank">click here</a>. <br> To unsubscribe <a name="CustomOptOut_SPCUSTOMOPTOUT" class="blueLink" id="CustomOptOut_SPCUSTOMOPTOUT" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #0076fe;cursor: pointer;text-decoration: none !important;"
                                      href="#" target="_blank">click here</a>. <br> Copyright © 2015 Condé Nast.
                                    All rights reserved.</div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>
  
  <p></p>
  <table cellspacing="1" cellpadding="1" width="100%" bgcolor="e0e0e0" border="0">
    <tbody>
      <tr>
        <td>
        </td>
      </tr>
    </tbody>
  </table>
  <p>

  </p>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console