Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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">
<!-- THIS EMAIL WAS BUILT USING LITMUS BUILDER https://litmusbuilder.com -->
<!-- QUESTIONS? TWEET US @litmusapp -->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
lang="en" xml:lang="en">
<head>
<title>Litmus</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<style type="text/css">
/* BOILERPLATE STYLES */
#outlook a{padding:0;}
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;}
.ExternalClass, .ExternalClass span, .ExternalClass td, .ExternalClass div {line-height: 100%;}
a {text-decoration: none;}
body, table, td, a{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;}
table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;}
img {-ms-interpolation-mode:bicubic; display: block; border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}
body {height:100% !important; margin:0 !important; padding:0 !important; width:100% !important;}

@media only screen and (max-width: 800px) {
  .w100p { width: 100% !important; }
	.img-max {
		max-width: 100% !important;
		width: 100% !important;
		height: auto !important;
	}
}
.showvideo:hover{
  opacity: 0 !important;
  transition: 0.3s !important;
}
.showvideo { transition: 0.3s !important; }
</style>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:AllowPNG/>
  <o:PixelsPerInch>96</o:PixelsPerInch>
 </o:OfficeDocumentSettings>
</xml><![endif]-->
</head>
<body class="body" style="padding:0; margin:0; text-align:center; background-color: #7b72dc;">

<div style="width: 100%; text-align:center; margin: 0 auto;">

<!-- start HIDE_METHOD -->
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td align="center" bgcolor="#7b72dc" valign="top" style="padding: 0px 15px;">
<table role="presentation" class="w100p" cellpadding="0" cellspacing="0" border="0" style="width: 750px; max-width: 750px;"><tr>
<td class="w100p" align="center" style="width: 750px; max-width: 750px;">

    <table role="presentation" cellpadding="0" cellspacing="0" border="0"><tr><td style="font-size: 1px; line-height: 40px;">&nbsp;</td></tr></table>
    <!-- start FAUX_VIDEO -->
    <table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr>
        <td background="http://campaigns.litmus.com/_email/2019/03_mar/20190315_March-NL/images/fauxvideo.gif" bgcolor="#43a1e2" style="background-size: cover; background-position:center !important; border-radius: 10px; box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);" valign="top">
            <table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr>
              <td align="center" valign="middle"><a href="http://litmus.com/blog/faux-video-fallback-for-video-in-email?utm_campaign=newsletter&utm_source=email&utm_medium=marketing&utm_content=%%dynamic_content_1456%%"><img class="showvideo" src="http://campaigns.litmus.com/_email/2019/03_mar/20190315_March-NL/images/cover-play.jpg" style="display:block; color: #ffffff; font-family:'proxima_nova', Helvetica, Arial, sans-serif; font-weight:bold; font-size:36px; line-height:40px; width: 600px; max-width: 100%; border-radius: 10px;" width="600" border="0" alt="Play" /></a></td>
            </tr></table>
        </td></tr>
    </table>
    <!-- end FAUX_VIDEO -->

    <table role="presentation" cellpadding="0" cellspacing="0" border="0"><tr><td style="font-size: 1px; line-height: 30px;">&nbsp;</td></tr></table>
    <h1 class="font30 lh38" style="font-family: 'proxima_nova', Helvetica, Arial, sans-serif; margin: 0; font-size: 40px; line-height: 48px; text-align: center; color: #ffffff; font-weight: bold;">
      Faux Video Example
		</h1>

    <table role="presentation" cellpadding="0" cellspacing="0" border="0"><tr><td style="font-size: 1px; line-height: 50px;">&nbsp;</td></tr></table>
</td></tr></table>
</td></tr></table>
<!-- end HIDE_METHOD -->
</div>
</body>
</html>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console