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

+ 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.


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.


                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo, tempore repellat eligendi neque earum maiores ratione! Corporis itaque voluptates nam, porro consequatur aliquid hic dolore sint. A cum nobis est?</p>

<section class="flex">

  <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut, optio.</li>
  <li>Sunt doloremque tenetur ratione sequi numquam totam nisi, voluptatum consequuntur?</li>
  <li>Deserunt quas repellat aliquam minima voluptate, commodi quibusdam, autem temporibus.</li>
  <li>Fugit quos totam, incidunt id culpa, dolores praesentium similique exercitationem.</li>
  <li>Quam aut provident eaque perferendis culpa voluptas aliquam beatae quo!</li>



                p {
  font-family: Sans-Serif;
  line-height: 2;
  font-style: italic;
  font-weight: bold;
  font-size: 24px;
  font-variant: small-caps;
  font: 16px Serif;

.flex {
  display: flex;
.flex >  span {
  padding: 10px;
  background: lightblue;
  flex-basis: 150px;
  flex-grow: 0;
  flex-shrink: 0;
  flex: auto;

ul {
  list-style-type: square;
  list-style-position: outside;
  list-style-image: url(cooldisc.png);
  list-style: inside;

div:nth-of-type(1) {
  background-repeat: no-repeat;
div:nth-of-type(2) {
  background-position: top right;
div:nth-of-type(3) {
  background-size: 100px;
div:nth-of-type(4) {
  background-attachment: fixed;
div:nth-of-type(5) {
  background-origin: content-box;
div:nth-of-type(6) {
  background-clip: padding-box;
div:nth-of-type(7) {
  background-color: red;

div:nth-of-type(n) {
  width: 100px;
  height: 100px;
  border: 1px solid black;
  margin: 10px;
  padding: 5px;
  background: url(;