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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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 style="width:600px;margin:auto;">
<br>
<h3>WooCommerce Receipt Example<h3>
<!-- Don't copy the line of code above, it's only to simulate receipt width.-->

<!-- Out of the box, WooCommerce doesn't allow much in the way of receipt   -->
<!-- customization. We can get links and background colors to work, but     -->
<!-- anything beyond that will require a web developer to make changes to   -->
<!-- the template file of your online store.                                -->

<div style="border: 1px solid #dedede;border-radius: 3px;background-color:aliceblue">
<div style="width:100%;text-align:center;background-color:aliceblue">
<a href="www.google.com" style="text-decoration:none"><h1 style="text-decoration:none;width:100%;text-align:center;color:black;">Click Here to Earn Rewards!</h1></a> </div>
<div style="width:100%;text-align:center;background-color:aliceblue">
  <h1 style="padding:10px;width:100%;text-align:center;font-family:Segoe UI">Your Offer Text!</h1>
  <p style="padding:10px;font-family:Segoe UI;font-size: 16px">Your offer instructions should go here</p>
  <p style="padding:10px;font-family:Segoe UI;font-size: 16px">Reach out to steve@icecreamsocial.io to help optimize!</p>
</div>
</div>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console