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

              
                <div id="email" style="width:600px;margin: auto;background:white;">
  <table role="presentation" border="0" align="right" cellspacing="0">
    <tr>
      <td>
        <a href="#" style="font-size: 9px; text-transform:uppercase; letter-spacing: 1px; color: #99ACC2;  font-family:Avenir;">View in Browser</a>
      </td>
    </tr>
  </table>
  
  <!-- Header --> 
  <table role="presentation" border="0" width="100%" cellspacing="0">
  <tr>
    <td bgcolor="#00A4BD" align="center" style="color: white;">
      <img alt="Flower" src="https://hs-8886753.f.hubspotemail.net/hs/hsstatic/TemplateAssets/static-1.60/img/hs_default_template_images/email_dnd_template_images/ThankYou-Flower.png" width="400px">
      <h1 style="font-size: 52px; margin:0 0 20px 0; font-family:Avenir;"> Welcome subscribers!</h1>
    </tr>
      </td>
  </table>

  <!-- Body 1 --> 
  <table role="presentation" border="0" width="100%" cellspacing="0">
     <tr>
       <td style="padding: 30px 30px 30px 60px;">
        <h2 style="font-size: 28px; margin:0 0 20px 0; font-family:Avenir;"> Lorem ipsum dolor sit amet</h2>
         <p style="margin:0 0 12px 0;font-size:16px;line-height:24px;font-family:Avenir">Ut eget semper libero. Vestibulum non maximus nisl, ut iaculis ante. Nunc arcu elit, cursus eget urna et, tempus aliquam eros. Ut eget semper libero. Vestibulum non maximus nisl, ut iaculis ante. Nunc arcu elit, cursus eget urna et, tempus aliquam eros.</p>
           <p style="margin:0;font-size:16px;line-height:24px;font-family:Avenir;"><a href="#" style="color:#FF7A59;text-decoration:underline;">Learn more</a></p>
         </td> 
    </tr>
  </table>
  
  <!-- Body 2--> 
    <table role="presentation" border="0" width="100%" cellspacing="0">
      <tr>
          <td style="vertical-align: top;
  padding: 30px 10px 30px 60px;"> 
           <img alt="Blog" src="https://www.hubspot.com/hubfs/assets/hubspot.com/style-guide/brand-guidelines/guidelines_sample-illustration-3.svg" width="200px" align="center">
            <h2 style="font-size: 28px; margin:0 0 20px 0; font-family:Avenir;"> Vivamus ac elit eget </h2>
            <p style="margin:0 0 12px 0;font-size:16px;line-height:24px;font-family:Avenir">Vivamus ac elit eget dolor placerat tristique et vulputate nibh. Sed in elementum nisl, quis mollis enim. Etiam gravida dui vel est euismod, at aliquam ipsum euismod.</p>
            <p style="margin:0;font-size:16px;line-height:24px;font-family:Avenir;"><a href="#" style="color:#FF7A59;text-decoration:underline;">Learn more</a></p>
            </td>
        <td style="vertical-align: top;
  padding: 30px 30px 30px 60px;">
          <img alt="Shopping" src="https://www.hubspot.com/hubfs/assets/hubspot.com/style-guide/brand-guidelines/guidelines_sample-illustration-5.svg" width="200px" align="center">
         <h2 style="font-size: 28px; margin:0 0 20px 0; font-family:Avenir;">Suspendisse tincidunt</h2>
            <p style="margin:0 0 12px 0;font-size:16px;line-height:24px;font-family:Avenir">Suspendisse tincidunt iaculis fringilla. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras laoreet elit purus, quis pulvinar.</p>
          <p style="margin:0;font-size:16px;line-height:24px;font-family:Avenir;"><a href="#" style="color:#FF7A59;text-decoration:underline;">Learn more</a></p>
            </td>
            </tr>       
</table>

  <!-- Body 3 --> 
  <table role="presentation" border="0" width="100%">
      <tr>
        <td bgcolor="#EAF0F6" align="center" style="padding: 30px 30px;">
          <h2 style="font-size: 28px; margin:0 0 20px 0; font-family:Avenir;"> Nullam porta arcu </h2>
          <p style="margin:0 0 12px 0;font-size:16px;line-height:24px;font-family:Avenir">Nam vel lobortis lorem. Nunc facilisis mauris at elit pulvinar, malesuada condimentum erat vestibulum. Pellentesque eros tellus, finibus eget erat at, tempus rutrum justo.</p>
          <a href="#" style="text-decoration: underline; font-weight: bold; color: #253342;  font-family:Avenir;"> Ask us a question</a>
          </td>
          </tr>
  </table>
  
 <!-- Footer -->
  <table role="presentation" border="0" width="100%" cellspacing="0">
      <tr>
          <td bgcolor="#F5F8FA" style="padding: 30px 30px;">
            <p style="margin:0 0 12px 0; font-size:16px; line-height:24px; color: #99ACC2; font-family:Avenir"> Made with &hearts; at HubSpot HQ </p>
            <a href="#" style="font-size: 9px; text-transform:uppercase; letter-spacing: 1px; color: #99ACC2;  font-family:Avenir;"> Unsubscribe </a>      
          </td>
          </tr>
      </table> 
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console