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


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


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.


                <link rel="stylesheet" href="">
<script src=""></script>
<div id='frame'>
<div id='targetdiv'></div>
<div id='instructions'>How much money do you expect to earn over each of the next 10 days?
    <li>If you expect to earn around $30 on three of these days, allocate 3 balls to the bucket "$30".</li>
        <li>If you expect to earn $60 on five of these days, allocate 5 balls to the bucket "$30".</li>
  Continue until you have allocated all 10 balls.


                #frame {
  width: 100%;
  text-align: center

  display: inline-block;


                var distbuilder = new DistributionBuilder();
  labels: [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
, prefix: "$"});