Pen Settings



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


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


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.


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.


  <li class="flex2">2  Lorem ipsum dolor sit amet.</li>
  <li>4 Lorem ipsum dolor sit amet.</li>
  <li class="flex2">5</li>


                /* using border-box model -- see for explanation */
html {
    box-sizing: border-box;
*, *::before, *::after {
    box-sizing: inherit;
/* turn off margin/padding, set font and size for the page */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
/* turn off bullets, push the box down the page, set a border plus width and height for demonstration purposes. */
ul {
  padding: 0;
  margin: 5rem auto;
  list-style-type: none;
  border: 10px dotted #9b2226;
  width: 900px;
  height: 500px;
/* set a border and background color to see each LI. Min-width and min-height are not necessarily a good idea in flexbox, but they are needed for the demo to better see the properties work. */
li {
  border: 2px solid #001219;
  background-color: #ee9800;
  min-width: 100px;
  height: 100px;