Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

<h4>Commonly used Attributes and Styles that has poor support in Outlook 2007/2010/2013/2016</h4>

<table width="300" border=1><tr><td background="http://freshinbox.com/examples/animated-carousel/images/car-meadow.jpg" width="200" style="color:#ffffff;background-color:#555555;" height=80>#1. Table Background Image</td></tr></table><BR>

<table width="300" border=1><tr><td height=80 style="background-image:url(http://freshinbox.com/examples/animated-carousel/images/car-meadow.jpg);color:#ffffff;background-color:#555555;">#2. CSS background-image</td></tr></table><BR><BR>

#3. Font family applied to outer table does not cascade to inner table.
<table border=1 cellpadding=5><tr><td style="font-family: Courier, monospace;">Outer table - abcdefghijklmnop
<table border=1 cellpadding=5><tr><td>Inner table - abcdefghijklmnop</td></tr></table>

#4. 350px wide image scaled to 200px using CSS (not supported by Outlook)<BR>
<img src="http://freshinbox.com/examples/carousel/images/i-pool.jpg" style="width:200px;"><BR><BR>

350px wide image scaled to 200px using width attribute (supported)<BR>
<img src="http://freshinbox.com/examples/carousel/images/i-pool.jpg" width=200><BR><BR>

#5. Width &amp; height of div not supported
<div style="border:2px solid #888888;width:400px;height:150px;"><BR>
#6. Link as button. Padding, border-radius and<BR> display:inline-block not supported<BR>
<a href="https://www.microsoft.com" style="background-color:#FF9933;padding:15px;display:inline-block;border-radius:15px">This is a link</a>

#7. floats do not work in Outlook (img float:left)
<table border=1 width=300><tr><td>
<img src="http://freshinbox.com/examples/animated-carousel/images/car-castle.jpg" width=70 height=80 style="float:left"> The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.</td></tr></table><BR><BR>

<table width="100%" style="max-width:400px;" border=1><tr><td>
#8. 100% width table with max-width:400px<BR> (max-width not supported)

#9. TR or TD with font-size:0 &amp; line-height:0 produces white line (row 2 &amp; 4)
<table width="300" style="background-color:red;color:white">
<tr height=20><td>Row 1</td></tr>
<tr height=20 style="font-size:0;line-height:0"><td>&nbsp;</td></tr>
<tr height=20><td>Row 3</td></tr>
<tr height=20><td height=20 style="font-size:0;line-height:0">&nbsp;</td></tr>
<tr height=20><td>Row 5</td></tr>

#10. Outlook converts margin-top &amp; margin-bottom on table to margins on cells
<table><tr><td bgcolor="#aaaaaa">
<table width="300" border=1 style="margin-top:30px;margin-bottom:30px;">
<tr><td>Row 1</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 3</td></tr>

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.